public void PromotionWithNoPriceListsTests() { IPromotionServices _promotionServices = new FixedPricePromotionServices(new List <string> { "C", "D" }, 30); _promotionServices.SetCart(_cartService); Assert.Equal(0, _promotionServices.Price()); }
public void PromotionWithValidSkuItemsTests() { IPromotionServices _promotionServices = new FixedPricePromotionServices(new List <string> { "C", "D" }, 30); _promotionServices.SetCart(_cartService); _promotionServices.SetPriceList(_priceListService); Assert.Equal(305, _promotionServices.Price()); }
public void PromotionWithInvalidItemsTests() { IPromotionServices _promotionServices = new FixedPricePromotionServices(new List <string> { "C", "D" }, 30); _cartService.RemoveItem("C"); _promotionServices.SetCart(_cartService); _promotionServices.SetPriceList(_priceListService); Assert.Equal(_cartService.Price(), _promotionServices.Price()); }