Пример #1
0
 internal static PublicEvents.AccountDebited ToPublic(this PrivateEvents.AccountDebited persistedEvent)
 {
     return(new PublicEvents.AccountDebited(persistedEvent.AccountId, persistedEvent.Amount));
 }
Пример #2
0
 private void Apply(PrivateEvents.AccountDebited @event)
 {
     Balance -= @event.Amount;
 }