mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-16 06:51:27 +00:00
- Updated CustomMethod - Updated implementation of update quality and sellin in derived classes
23 lines
454 B
C#
23 lines
454 B
C#
using GildedRose.Abstraction;
|
|
using GildedRoseKata;
|
|
|
|
namespace GildedRose.Models
|
|
{
|
|
public class AgedBrie : Item, ICustomMethod
|
|
{
|
|
public int SellDaysGone { get; set; }
|
|
|
|
public void UpdateQuality() {
|
|
if (this.Quality < 51)
|
|
{
|
|
this.Quality++;
|
|
}
|
|
}
|
|
|
|
public void UpdateSellIn()
|
|
{
|
|
if (this.SellIn > 0)
|
|
this.SellIn--;
|
|
}
|
|
}
|
|
} |