CalculateTotal() public method

public CalculateTotal ( Order order ) : decimal
order Order
return decimal
        public void CalculateTotal_WithoutCoupon_ReturnLineItemTotal()
        {
            Order order = new Order { ItemTotal = 100 };
            OrderServices orderServices = new OrderServices(new DataAccess());

            var total = orderServices.CalculateTotal(order);

            Assert.AreEqual(100, total);
        }
        public void CalculateTotal_WithCoupon_ReturnLineItemWithDiscount()
        {
            Order order = new Order { Coupon = "christmas", ItemTotal = 100 };
            OrderServices orderServices = new OrderServices(new DataAccess());

            var total = orderServices.CalculateTotal(order);

            Assert.AreEqual(90, total);
        }
        public void CalculateTotal_WithCoupon_ReturnLineItemWithDiscount()
        {
            Order order = new Order { Coupon = "christmas", ItemTotal = 100 };
            var dataAccess = new SimpleDataAccess();
            dataAccess.CouponPercentage = 10;
            OrderServices orderServices = new OrderServices(dataAccess);

            var total = orderServices.CalculateTotal(order);

            Assert.AreEqual(90, total);
        }
        public void CalculateTotal_WithCoupon_ReturnLineItemWithDiscount()
        {
            Order order = new Order { Coupon = "christmas", ItemTotal = 100 };
            var dataAccess = new Mock<IDataAccess>();
            dataAccess.Setup(x => x.GetPromotionalDiscount(order.Coupon)).Returns(10);
            OrderServices orderServices = new OrderServices(dataAccess.Object);

            var total = orderServices.CalculateTotal(order);

            Assert.AreEqual(90, total);
        }