public PatientSerializationDouble(Patient p) { Name = p.Name; Alive = p.Alive; Birthday = new DateSerializationDouble(p.Birthday); Id = p.Id; ExternalId = p.ExternalId; }
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 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; }
public AggregateIdentifierSerializationDouble(AggregateIdentifier aggregateIdentifier) { PracticeVersion = aggregateIdentifier.PracticeVersion; MedicalPracticeId = aggregateIdentifier.MedicalPracticeId; Date = new DateSerializationDouble(aggregateIdentifier.Date); }