Beispiel #1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="ScheduledStartTimeChangeDTO" /> class
        /// </summary>
        /// <param name="dto">The time change</param>
        public ScheduledStartTimeChange(ScheduledStartTimeChangeDTO dto)
        {
            Contract.Requires(dto != null);

            OldTime   = dto.OldTime;
            NewTime   = dto.NewTime;
            ChangedAt = dto.ChangedAt;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="ScheduledStartTimeChangeDTO"/> class
        /// </summary>
        /// <param name="dto">The time change</param>
        public ScheduledStartTimeChange(ScheduledStartTimeChangeDTO dto)
        {
            Guard.Argument(dto, nameof(dto)).NotNull();

            OldTime   = dto.OldTime;
            NewTime   = dto.NewTime;
            ChangedAt = dto.ChangedAt;
        }