예제 #1
0
        public void Execute(Item item)
        {
            if (ItemIsNotOrdinary(item))
            {
                return;
            }

            _decreaseQuality.Execute(item);
            _decreaseSellIn.Execute(item);

            if (ItemIsToOld(item))
            {
                _decreaseQuality.Execute(item);
            }
        }
예제 #2
0
        public void Execute(Item item)
        {
            if (!item.IsConjured())
            {
                return;
            }

            _decreaseQuality.Execute(item);
            _decreaseQuality.Execute(item);
            _decreaseSellIn.Execute(item);

            if (ItemIsNotTooOld(item))
            {
                return;
            }

            _decreaseQuality.Execute(item);
            _decreaseQuality.Execute(item);
        }