private EventStore(EventValue eventValue, StreamValue streamValue, string creator) { var createdDate = DateTime.UtcNow; Event = eventValue; Stream = streamValue; Audit = AuditValueObject.Create(createdDate, creator); Status = EEventStoreStatus.Active; }
public static EventStore Create(EventValue eventValue, StreamValue streamValue, string creator) { return(new EventStore(eventValue, streamValue, creator)); }