mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-09 03:31:28 +00:00
16 lines
301 B
C#
16 lines
301 B
C#
namespace GildedRoseKata.Strategies;
|
|
|
|
public class AgedBrieStrategy : BaseUpdateStrategy
|
|
{
|
|
public override void UpdateQuality(Item item)
|
|
{
|
|
IncreaseQuality(item);
|
|
DecreaseSellIn(item);
|
|
|
|
if (item.SellIn < 0)
|
|
{
|
|
IncreaseQuality(item);
|
|
}
|
|
}
|
|
}
|