public Task AmountDeposited(AmountDeposited amountDeposited)
        {
            var currentBalance = database.Select(amountDeposited.Number);

            database.Update(amountDeposited.Number, currentBalance + amountDeposited.Amount);
            return(Task.CompletedTask);
        }
示例#2
0
 public void Apply(AmountDeposited amountDeposited)
 {
     balance += amountDeposited.Amount;
 }