Exemple #1
0
        public CartTotal GetReceipt()
        {
            decimal totalTax    = _bill.CalcTotalTax(_productList);
            decimal totalAmount = _bill.CalcTotalAmount(_productList);

            _receipt = _bill.CreateNewReceipt(_productList, totalTax, totalAmount);
            return(_receipt);
        }
Exemple #2
0
        public void GenerateReceipt(CartTotal r)
        {
            string receipt = r.ToString();

            Console.WriteLine(receipt);
        }
Exemple #3
0
 public void PrintReceipt(CartTotal receipt)
 {
     _bill.GenerateReceipt(receipt);
 }