Skip to content

My solution to the Gilded Rose Refactoring Kata

License

Notifications You must be signed in to change notification settings

egil/GildedRose

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My solution to the Gilded Rose Refactoring Kata

This fork of https://github.com/NotMyself/GildedRose contains my solution the Gilded Rose Refactoring Kata.

This was my approach:

  1. Moved the UpdateQuantity method to a dedicated class named InventoryUpdater
  2. Write unittests to cover the existing features, based on the specification.
  3. Refactor to use the a variant of the Chain of Responsibility pattern.
  4. 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.

License

MIT

About

My solution to the Gilded Rose Refactoring Kata

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%