void On(WithdrawalPerformedFromDebitAccount withdrawal) { _balance -= withdrawal.Amount; }
public void Process(WithdrawalPerformedFromDebitAccount @event, EventMetadata eventMetadata) { AddTransaction(eventMetadata.EventSourceId, [email protected], TransactionReason.Withdrawal, eventMetadata.Occurred); }