public void AddingTransaction()
        {
            container.Add(transaction);

            IList transactions = container.Transactions;

            Assert.AreEqual(1, transactions.Count);
            Assert.AreSame(transaction, transactions[0]);
        }
Beispiel #2
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);
        }
Beispiel #3
0
 public virtual void AddEmployee()
 {
     transactionContainer.Add(CreateTransaction());
 }