This fork of https://github.com/NotMyself/GildedRose contains my solution the Gilded Rose Refactoring Kata.
This was my approach:
- Moved the
UpdateQuantity
method to a dedicated class namedInventoryUpdater
- Write unittests to cover the existing features, based on the specification.
- Refactor to use the a variant of the Chain of Responsibility pattern.
- Add the new "Conjoured" requirement as an
ItemUpdater
.
All credit for an excellent kata goes to @TerryHughes and @NotMyself. The original repository can be found at https://github.com/NotMyself/GildedRose.
MIT