public void Customers_WithHighSpeedBroadband_DualFuel() { var customerPackage = new PackageServiceStub().GetPackage("6"); var discount = _discountService.PackageDiscount(customerPackage); Assert.AreEqual(10, discount.DiscountValue); Assert.AreEqual(DiscountType.PackageDiscount, discount.DiscountType); }
public void Customers_WithBasicBroadband_Only1Fuel() { var customerPackage = new PackageServiceStub().GetPackage("1"); var discount = _discountService.PackageDiscount(customerPackage); Assert.AreEqual(0, discount.DiscountValue); Assert.AreEqual(DiscountType.None, discount.DiscountType); customerPackage = new PackageServiceStub().GetPackage("2"); discount = _discountService.PackageDiscount(customerPackage); Assert.AreEqual(0, discount.DiscountValue); Assert.AreEqual(DiscountType.None, discount.DiscountType); }