mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-07-28 10:11:03 +00:00
Introduce the Strategy + Factory design: IItemUpdater (Name + Update), an ItemUpdaterBase with the single shared [0,50] clamp helper, stateless strategies for normal/Aged Brie/Sulfuras/Backstage, and a factory with two-tier resolution (exact name via case-insensitive dictionary, then Conjured prefix rule, then the default fallback). Not wired into GildedRose yet; no behaviour change. The Conjured strategy itself arrives in the feature commit. 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