public void UpdateWithExistingSpecialOfDifferentTypeReturnsTrue()
        {
            IRepository <ISpecial> specialsRepository = new SpecialsRepository();

            specialsRepository.Save(priceSpecial);
            bool updated = specialsRepository.Update(limitSpecialNoLimit);

            Assert.IsTrue(updated);
        }
        public void UpdateWithExistingSpecialOfTheSameTypeReturnsTrue()
        {
            IRepository <ISpecial> specialsRepository = new SpecialsRepository();

            specialsRepository.Save(priceSpecial);
            bool updated = specialsRepository.Update(updatedPriceSpecial);

            Assert.IsTrue(updated);
        }
        public void UpdateWithExistingSpecialUpdatesRightSpecial()
        {
            IRepository <ISpecial> specialsRepository = new SpecialsRepository();

            specialsRepository.Save(priceSpecial);
            bool updated        = specialsRepository.Update(updatedPriceSpecial);
            var  specialsList   = specialsRepository.GetAll();
            var  updatedSpecial = (PriceSpecial)specialsList[0];

            Assert.IsTrue(updated);
            Assert.AreEqual(updatedSpecial.ProductName, "Can of soup");
            Assert.AreEqual(updatedSpecial.Price, 6);
        }