public CalculateCartFlow(ICalculateSubTotal calculateSubTotal, ICalculateTax calculateTax, ICalculateDiscount calculateDiscount, ICalculateTotal calculateTotal) { this.calculateSubTotal = calculateSubTotal; this.calculateTax = calculateTax; this.calculateDiscount = calculateDiscount; this.calculateTotal = calculateTotal; }
public CalculateTotalController(ICalculateTotal calculateTotal) { CalculateTotal = calculateTotal; }