https://github.com/shereef/refactor-starter-csharp
https://github.com/shereef/refactor-starter-csharp
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shereef/refactor-starter-csharp
- Owner: Shereef
- Created: 2022-08-31T17:17:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-31T12:35:46.000Z (almost 4 years ago)
- Last Synced: 2025-07-24T16:13:48.322Z (11 months ago)
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/Kaizenko/refactor-starter-csharp/blob/main/GildedRoseRequirements.txt)
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](https://github.com/emilybache/GildedRose-Refactoring-Kata)
2. Christian Hujer's [Expense Report kata](https://github.com/christianhujer/expensereport)
3. Sandro Mancuso's [Trip Service kata](https://github.com/sandromancuso/trip-service-kata)