public void Apply(NewAccountCreatedEvent @event) { Account = new Account(@event.ClientId, @event.Number); }
public Task Handle(NewAccountCreatedEvent @event, CancellationToken cancellationToken) { Save(@event.Id, @event); return(Task.CompletedTask); }