Esempio n. 1
0
 public DomainEventSerializationDouble(DomainEvent domainEvent)
 {
     AggregateId      = new AggregateIdentifierSerializationDouble(domainEvent.AggregateId);
     AggregateVersion = domainEvent.AggregateVersion;
     UserId           = domainEvent.UserId;
     PatientId        = domainEvent.PatientId;
     TimeStampDate    = new DateSerializationDouble(domainEvent.TimeStamp.Item1);
     TimeStampTime    = new TimeSerializationDouble(domainEvent.TimeStamp.Item2);
     ActionTag        = domainEvent.ActionTag;
 }
 public EventStreamSerializationDouble(EventStream <AggregateIdentifier> eventStream)
 {
     Id     = new AggregateIdentifierSerializationDouble(eventStream.Id);
     Events = eventStream.Events.Select(DomainEventSerializationDouble.GetDomainEventSerializationDouble);
 }