Пример #1
0
        public void Should_decrease_sellIn(string name)
        {
            var inputSellIn = 1;
            var item        = new Item {
                Name = name, SellIn = inputSellIn
            };

            _sellIn.Control(item);

            Assert.AreEqual(inputSellIn - 1, item.SellIn);
        }
Пример #2
0
        public void UpdateSingle(Item item)
        {
            _sellIn.Control(item);
            Quality quality = _qualityFactory.Create(item.Name);

            quality.Control(item);
        }