public void Handle(OverdrawAttemptedEvent e)
 {
     Notifications.Add(new Notification(e.AccountId, string.Format("Overdraw of {0} attempted.", e.Amount)));
 }
示例#2
0
 private void UpdateFrom(OverdrawAttemptedEvent @event)
 {
     _numberOfOverdraws++;
 }