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