Ejemplo n.º 1
0
        public decimal CalculateTotal(IOrder order)
        {
            decimal itemTotal = order.GetItemTotal();
            decimal discountAmount = DiscountCalculator.CalculateDiscount(order);
            decimal taxAmount = 0.0M;
            taxAmount = FindTaxAmount(order);

            decimal total = itemTotal - discountAmount + taxAmount;
            return total;
        }