示例#1
0
        public void Fee()
        {
            var account = new CashAccount();

            account.FeeDeducted(new Date(2000, 01, 01), 100.00m, "test");

            var result = account.Transactions.ToArray();

            result.Should().BeEquivalentTo(new[]
            {
                new { Date = new Date(2000, 01, 01), Description = "test", Amount = -100.00m, Type = BankAccountTransactionType.Fee, Balance = -100.00m }
            });
        }