public CustomerCreated(string aggregateId, string name, CreateCustomer previous) : base(typeof(Customer).Name, aggregateId, 0, previous) { Id = aggregateId; Name = name; }
public async Task CreateCustomer(CreateCustomer command) { await RaiseEventAsync(new CustomerCreated(command.AggregateId, command.Name, command)); }