public Document(string title, DateTime utcCreated) { var @event = new DocumentMetaDataCreated( CombGuid.Generate(), title, DocumentState.Created, utcCreated); RaiseEvent(@event); }
public void Apply(DocumentMetaDataCreated evt) { Id = evt.AggregateId; }