public Task AddEnvelope(AddEnvelope command) { var @event = new EnvelopeAdded(command.Id, command.Name, command.Categories, command.BoardId, command.UserId); RaiseEvent(@event); return(Task.CompletedTask); }
public void Apply(EnvelopeAdded e) { Envelopes[e.Id] = new Envelope(e.Id, e.Name, e.Categories); }