Exemplo n.º 1
0
        private EventStore(EventValue eventValue,
                           StreamValue streamValue,
                           string creator)
        {
            var createdDate = DateTime.UtcNow;

            Event  = eventValue;
            Stream = streamValue;
            Audit  = AuditValueObject.Create(createdDate, creator);
            Status = EEventStoreStatus.Active;
        }
Exemplo n.º 2
0
 public static EventStore Create(EventValue eventValue,
                                 StreamValue streamValue,
                                 string creator)
 {
     return(new EventStore(eventValue, streamValue, creator));
 }