mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-08 03:01:24 +00:00
16 lines
305 B
C#
16 lines
305 B
C#
namespace GildedRoseKata.Strategies;
|
|
|
|
public class StandardItemStrategy : BaseUpdateStrategy
|
|
{
|
|
public override void UpdateQuality(Item item)
|
|
{
|
|
DecreaseQuality(item);
|
|
DecreaseSellIn(item);
|
|
|
|
if (item.SellIn < 0)
|
|
{
|
|
DecreaseQuality(item);
|
|
}
|
|
}
|
|
}
|