Пример #1
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="DrawInfoCI" /> class
        /// </summary>
        /// <param name="dto">A <see cref="DrawInfoDTO" /> instance containing information about the draw info</param>
        public DrawInfoCI(DrawInfoDTO dto)
        {
            Contract.Requires(dto != null);

            DrawType = dto.DrawType;
            TimeType = dto.TimeType;
            GameType = dto.GameType;
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DrawInfoCI"/> class
        /// </summary>
        /// <param name="dto">A <see cref="DrawInfoDTO"/> instance containing information about the draw info</param>
        public DrawInfoCI(DrawInfoDTO dto)
        {
            Guard.Argument(dto, nameof(dto)).NotNull();

            DrawType = dto.DrawType;
            TimeType = dto.TimeType;
            GameType = dto.GameType;
        }