GildedRose-Refactoring-Kata/csharpcore/GildedRose/Models/Conjured.cs
Adefolarin Adeniji e625aed95a Updates
- Updated CustomMethod
- Updated implementation of update quality and sellin in derived classes
2021-08-27 15:01:36 +01:00

22 lines
471 B
C#

using GildedRose.Abstraction;
using GildedRoseKata;
namespace GildedRose.Models
{
public class Conjured : Item, ICustomMethod
{
public int SellDaysGone { get; set; }
public void UpdateQuality()
{
if (this.SellDaysGone > this.SellIn && this.Quality > 1)
this.Quality -= 2;
}
public void UpdateSellIn()
{
if (this.SellIn > 0)
this.SellIn--;
}
}
}