Ejemplo n.º 1
0
        public void ProcessOrder(Order order)
        {
            order.Total = order.OrderLines.Sum(ol => ol.Amount);

            order.Tax += _taxCalculator.GetTax();

            order.GrandTotal = order.Total + order.Tax;
        }
Ejemplo n.º 2
0
 public virtual decimal GetPriceWithTax(ITaxCalculator calculator)
 {
     decimal price = 0;
     if (calculator != null)
     {
      price = calculator.GetTax(RawPrice) + RawPrice;
     }
     return price;
 }
Ejemplo n.º 3
0
 public decimal GetPriceWithTax(ITaxCalculator calculator)
 {
     return(calculator.GetTax(this.RawPrice) + this.RawPrice);
 }