public void Apply(CustomerCreatedByUser @event) { this.State = CustomerState.Created; this.Name = @event.Name; }
public void Handle(CustomerCreatedByUser @event) { this.eventStore.Store(@event.CustomerId, @event); }