public PatientSerializationDouble(Patient p)
 {
     Name       = p.Name;
     Alive      = p.Alive;
     Birthday   = new DateSerializationDouble(p.Birthday);
     Id         = p.Id;
     ExternalId = p.ExternalId;
 }
예제 #2
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;
 }
예제 #3
0
        public DomainEventSerializationDouble(AppointmentReplaced appointmentReplacedEvent)
            : this((DomainEvent)appointmentReplacedEvent)
        {
            DomainEventType = EventType.Replaced;

            NewDescription        = appointmentReplacedEvent.NewDescription;
            NewDate               = new DateSerializationDouble(appointmentReplacedEvent.NewDate);
            NewStartTime          = new TimeSerializationDouble(appointmentReplacedEvent.NewStartTime);
            NewEndTime            = new TimeSerializationDouble(appointmentReplacedEvent.NewEndTime);
            NewTherapyPlaceId     = appointmentReplacedEvent.NewTherapyPlaceId;
            NewLabelId            = appointmentReplacedEvent.NewLabelId;
            OriginalAppointmendId = appointmentReplacedEvent.OriginalAppointmendId;
        }
예제 #4
0
 public AggregateIdentifierSerializationDouble(AggregateIdentifier aggregateIdentifier)
 {
     PracticeVersion   = aggregateIdentifier.PracticeVersion;
     MedicalPracticeId = aggregateIdentifier.MedicalPracticeId;
     Date = new DateSerializationDouble(aggregateIdentifier.Date);
 }