mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-07-27 17:51:49 +00:00
GildedRose now resolves each item to its strategy and applies it; all rules live in the strategies. The original one-arg constructor keeps working by delegating to ItemUpdaterFactory.Default(); a second constructor allows injecting a custom IItemUpdaterFactory. No behaviour change: the ThirtyDays approval snapshot and all existing-type spec tests pass unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| GildedRose | ||
| GildedRoseTests | ||
| .gitignore | ||
| GildedRose.sln | ||
| README.md | ||
Gilded Rose starting position in C# xUnit
Build the project
Use your normal build tools to build the projects in Debug mode.
For example, you can use the dotnet command line tool:
dotnet build GildedRose.sln -c Debug
Run the Gilded Rose Command-Line program
For e.g. 10 days:
GildedRose/bin/Debug/net8.0/GildedRose 10
Run all the unit tests
dotnet test