コード例 #1
0
        private DateTimeOffset[] GetOccurredOns()
        {
            var accountCreatedWithBalance      = new AccountCreatedWithBalance(Balance.Create(123m));
            var accountCreatedWithEmptyBalance = new AccountCreatedWithEmptyBalance();
            var depositedMoney = new DepositedMoney(new Money(123m));
            var withdrawnMoney = new WithdrawnMoney(new Money(123m));

            return(new[] { accountCreatedWithBalance.OccurredOn, accountCreatedWithEmptyBalance.OccurredOn, depositedMoney.OccurredOn, withdrawnMoney.OccurredOn });
        }
コード例 #2
0
 private void When(AccountCreatedWithEmptyBalance accountCreatedWithEmptyBalance)
 {
     Balance = accountCreatedWithEmptyBalance.Balance;
 }
コード例 #3
0
        public void Initialize_Balance_With_Empty_Balance()
        {
            var accountCreatedWithEmptyBalance = new AccountCreatedWithEmptyBalance();

            Assert.AreEqual(Balance.Empty, accountCreatedWithEmptyBalance.Balance);
        }