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

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