public void Execute(Item item) { if (!item.IsBackStagePass()) { return; } _increaseQuality.Execute(item); if (LessThan11DaysTillConcert(item)) { _increaseQuality.Execute(item); } if (LessThan6DaysTillConcert(item)) { _increaseQuality.Execute(item); } _decreaseSellIn.Execute(item); if (ConcertIsOver(item)) { item.Quality = 0; } }
public void Execute(Item item) { if (!item.IsAgedBrie()) { return; } _increaseQuality.Execute(item); _decreaseSellIn.Execute(item); if (ItemIsToOld(item)) { _increaseQuality.Execute(item); } }