public void Handle(AccountUnlockedEvent @event) { var account = AccountInfos.FirstOrDefault(x => x.AccountId == @event.AccountId); if (account != null) account.Unlock(); }
public void Handle(AccountUnlockedEvent e) { Notifications.Add(new Notification(e.AccountId, string.Format("Account unlocked."))); }
private void UpdateFrom(AccountUnlockedEvent @event) { _numberOfOverdraws = 0; _isLocked = false; }