Exemple #1
0
        public Document(string title, DateTime utcCreated)
        {
            var @event = new DocumentMetaDataCreated(
                CombGuid.Generate(), title, DocumentState.Created, utcCreated);

            RaiseEvent(@event);
        }
Exemple #2
0
 public void Apply(DocumentMetaDataCreated evt)
 {
     Id = evt.AggregateId;
 }