Beispiel #1
0
        public void TestAddWithdrawalSingleItem()
        {
            decimal value = 15.00M;

            accountModel.AddWithdrawal(value);

            Assert.AreEqual(1, accountModel.Withdrawals.Count);
            Assert.AreEqual(value, accountModel.Withdrawals[0].Item1);
            Assert.AreEqual(0, accountModel.Withdrawals[0].Item2);
            Assert.AreEqual(1, events.Count);
            Assert.AreEqual("TotalWithdrawals", events[0]);
        }