Ejemplo n.º 1
0
        public void CreateReceipt_GenerateReceiptFromAnEmptyTransaction_ReceiptContainsOneString()
        {
            var transaction = new Transaction();

            _uut.CreateReceipt(transaction);

            _printer.Received(1).Print();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Prints a SalesOrder.
 /// </summary>
 public void CreateAndPrintReceipt()
 {
     _receiptController.CreateReceipt(_orderController.CurrentOrder);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// To print a transaction
 /// </summary>
 /// <param name="transaction">Transaction to be printet</param>
 public void PrintTransaction(Transaction transaction)
 {
     _receiptController.CreateReceipt(transaction);
 }