Skip to content

DaySmart/refactor-starter-csharp

 
 

Repository files navigation

refactor-starter-csharp

Starter solution for refactoring exercises

GildedRose Kata

Exercise to modify some legacy code: We have a new request to support "Conjured" items that degrade in Quality twice as fast as normal items

  1. Read the requirements
  2. Add tests before you make any changes
  3. Refactor
  4. Add tests for the new requirement
  5. Make the change to support the new requirement

Expense Report Kata

Exercise to modify some legacy code: We have a new request to support lunch expenses with a limit of 2000

  1. Try to understand the code
  2. Add tests to help you understand it and make changes safe
  3. Why is it hard to test this code?
  4. Refator to make the code easier to test
  5. Why is this code hard to change?
  6. Refactor to make the code easier to change
  7. Add tests for the new case
  8. Add the logic for the new case
  9. Anything else we can improve on?

Trip Service Kata

Exercise to test legacy code: TripService returns trips of a user's friend.

  1. Add tests to help you understand the code
  2. Why is it hard to test this code?
  3. Refator to make the code easier to test - You cannot change the existing method signature
  4. Add tests
  5. Refactor to make the code cleaner

Katas are modified versions of

  1. Emily Bache's Gilded Rose kata
  2. Christian Hujer's Expense Report kata
  3. Sandro Mancuso's Trip Service kata

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%