public void CreateReceipt_GenerateReceiptFromAnEmptyTransaction_ReceiptContainsOneString() { var transaction = new Transaction(); _uut.CreateReceipt(transaction); _printer.Received(1).Print(); }
/// <summary> /// Prints a SalesOrder. /// </summary> public void CreateAndPrintReceipt() { _receiptController.CreateReceipt(_orderController.CurrentOrder); }
/// <summary> /// To print a transaction /// </summary> /// <param name="transaction">Transaction to be printet</param> public void PrintTransaction(Transaction transaction) { _receiptController.CreateReceipt(transaction); }