Пример #1
0
        public void AddAction()
        {
            TransactionContainer container =
                presenter.TransactionContainer;
            Transaction transaction = new MockTransaction();

            container.Add(transaction);

            string expected = transaction.ToString()
                              + Environment.NewLine;

            Assert.AreEqual(expected, view.transactionsText);
        }
Пример #2
0
 public void AddSalesReceipt()
 {
     transactionContainer.Add(new SalesReceiptTransaction(
                                  date, amount, empId));
 }
 public virtual void AddEmployee()
 {
     transactionContainer.Add(CreateTransaction());
 }