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