Пример #1
0
        public HoursOfOpeningSerializationDouble(HoursOfOpening hoursOfOpening)
        {
            OpeningTimeMonday    = new TimeSerializationDouble(hoursOfOpening.OpeningTimeMonday);
            OpeningTimeTuesday   = new TimeSerializationDouble(hoursOfOpening.OpeningTimeTuesday);
            OpeningTimeWednesday = new TimeSerializationDouble(hoursOfOpening.OpeningTimeWednesday);
            OpeningTimeThursday  = new TimeSerializationDouble(hoursOfOpening.OpeningTimeThursday);
            OpeningTimeFriday    = new TimeSerializationDouble(hoursOfOpening.OpeningTimeFriday);
            OpeningTimeSaturday  = new TimeSerializationDouble(hoursOfOpening.OpeningTimeSaturday);
            OpeningTimeSunday    = new TimeSerializationDouble(hoursOfOpening.OpeningTimeSunday);

            ClosingTimeMonday    = new TimeSerializationDouble(hoursOfOpening.ClosingTimeMonday);
            ClosingTimeTuesday   = new TimeSerializationDouble(hoursOfOpening.ClosingTimeTuesday);
            ClosingTimeWednesday = new TimeSerializationDouble(hoursOfOpening.ClosingTimeWednesday);
            ClosingTimeThursday  = new TimeSerializationDouble(hoursOfOpening.ClosingTimeThursday);
            ClosingTimeFriday    = new TimeSerializationDouble(hoursOfOpening.ClosingTimeFriday);
            ClosingTimeSaturday  = new TimeSerializationDouble(hoursOfOpening.ClosingTimeSaturday);
            ClosingTimeSunday    = new TimeSerializationDouble(hoursOfOpening.ClosingTimeSunday);

            IsOpenOnMonday    = hoursOfOpening.IsOpenOnMonday;
            IsOpenOnTuesday   = hoursOfOpening.IsOpenOnTuesday;
            IsOpenOnWednesday = hoursOfOpening.IsOpenOnWednesday;
            IsOpenOnThursday  = hoursOfOpening.IsOpenOnThursday;
            IsOpenOnFriday    = hoursOfOpening.IsOpenOnFriday;
            IsOpenOnSaturday  = hoursOfOpening.IsOpenOnSaturday;
            IsOpenOnSunday    = hoursOfOpening.IsOpenOnSunday;

            AdditionalClosedDays = hoursOfOpening.AdditionalClosedDays.Select(day => new DateSerializationDouble(day));
            AdditionalOpenedDays = hoursOfOpening.AdditionalOpenedDays.Select(day => new DateSerializationDouble(day));
        }
Пример #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(AppointmentAdded appointmentAddedEvent)
            : this((DomainEvent)appointmentAddedEvent)
        {
            DomainEventType = EventType.Added;

            Description    = appointmentAddedEvent.Description;
            StartTime      = new TimeSerializationDouble(appointmentAddedEvent.StartTime);
            EndTime        = new TimeSerializationDouble(appointmentAddedEvent.EndTime);
            TherapyPlaceId = appointmentAddedEvent.TherapyPlaceId;
            AppointmentId  = appointmentAddedEvent.AppointmentId;
            LabelId        = appointmentAddedEvent.LabelId;
        }
Пример #4
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;
        }