public async Task NewAccountWasCreatedForCurrency(Currency currency) { var account = PrePaidAccount.New(currency); await _repository.Save(account); _id = account.Id; }
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; }
public void NewAccountIsCreated(Currency currency) => _account = PrePaidAccount.New(currency);