public Task AmountWithdrawn(AmountWithdrawn amountWithdrawn)
        {
            var currentBalance = database.Select(amountWithdrawn.Number);

            database.Update(amountWithdrawn.Number, currentBalance - amountWithdrawn.Amount);
            return(Task.CompletedTask);
        }
Пример #2
0
 public void Apply(AmountWithdrawn amountWithdrawn)
 {
     balance -= amountWithdrawn.Amount;
 }