Skip to content

koranke/CodingTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Application

Problem context:

We are a small shop that buy and sells goods. Goods constantly degrade in quality as they approach their sell by date. We have a system in place that updates inventory for us.

Your Task: Add the new feature to our system so that we can begin selling a new category of items.

The existing system: - All items have a SellIn value which denotes the number of days we have to sell the item - All items have a Quality value which denotes how valuable the item is - At the end of each day our system lowers both values for every item

The new feature to implement: - "Conjured" items degrade in Quality twice as fast as normal items

Rules: - Make any changes to the UpdateQuality method or add any new code you want. - Do not alter the Item class or Items property.

Existing system constraints that must continue to work: - Once the sell by date has passed, Quality degrades twice as fast - The Quality of an item is never negative - "Aged Brie" actually increases in Quality the older it gets - The Quality of an item is never more than 50 - "Sulfuras", being a legendary item, never has to be sold or decreases in Quality - "Backstage passes", like aged brie, increases in Quality as it's SellIn value approaches; - Quality increases by 2 when there are 10 days or less - and by 3 when there are 5 days or less but Quality drops to 0 after the concert - An item can never have its Quality increase above 50, however "Sulfuras" is a legendary item and as such its Quality is 80 and it never alters.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages