public CartTotal GetReceipt() { decimal totalTax = _bill.CalcTotalTax(_productList); decimal totalAmount = _bill.CalcTotalAmount(_productList); _receipt = _bill.CreateNewReceipt(_productList, totalTax, totalAmount); return(_receipt); }
public void GenerateReceipt(CartTotal r) { string receipt = r.ToString(); Console.WriteLine(receipt); }
public void PrintReceipt(CartTotal receipt) { _bill.GenerateReceipt(receipt); }