示例#1
0
            public async Task NewAccountWasCreatedForCurrency(Currency currency)
            {
                var account = PrePaidAccount.New(currency);
                await _repository.Save(account);

                _id = account.Id;
            }
示例#2
0
            public async Task AmountAvailableWas(decimal value, Currency currency)
            {
                var account = PrePaidAccount.New(currency);

                account.Recharge(Money.Of(value, currency));
                await _repository.Save(account);

                _id = account.Id;
            }
示例#3
0
 public void NewAccountIsCreated(Currency currency) => _account = PrePaidAccount.New(currency);