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 }); }
private void When(AccountCreatedWithEmptyBalance accountCreatedWithEmptyBalance) { Balance = accountCreatedWithEmptyBalance.Balance; }
public void Initialize_Balance_With_Empty_Balance() { var accountCreatedWithEmptyBalance = new AccountCreatedWithEmptyBalance(); Assert.AreEqual(Balance.Empty, accountCreatedWithEmptyBalance.Balance); }