示例#1
0
        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);
        }
示例#2
0
        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);
        }