Beispiel #1
0
 internal static PublicEvents.AccountCreated ToPublic(this PrivateEvents.AccountCreated persistedEvent)
 {
     return(new PublicEvents.AccountCreated(persistedEvent.AccountId, persistedEvent.Amount));
 }
Beispiel #2
0
 private void Apply(PrivateEvents.AccountCreated @event)
 {
     AccountId = @event.AccountId;
     Balance   = @event.Amount;
 }