public Task AmountDeposited(AmountDeposited amountDeposited) { var currentBalance = database.Select(amountDeposited.Number); database.Update(amountDeposited.Number, currentBalance + amountDeposited.Amount); return(Task.CompletedTask); }
public void Apply(AmountDeposited amountDeposited) { balance += amountDeposited.Amount; }