示例#1
0
        public void createTest()
        {
            IRecordIdManager        recordIdManager        = new MockRecordIdManager();
            ICashTransactionFactory cashTransactionFactory = new CashTransactionFactory(recordIdManager);

            DateTime         jan012000       = new DateTime(2000, 1, 1);
            Decimal          amount          = 100.55m;
            ICashTransaction cashTransaction = cashTransactionFactory.create(jan012000, amount);

            Assert.AreEqual(1, cashTransaction.Id);
            Assert.AreEqual(amount, cashTransaction.Amount);
            Assert.AreEqual(jan012000, cashTransaction.Date);
        }