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