public void Should_GetDate_Throw_Exception_When_Given_Year_Is_Below_Min_Value()
        {
            var dayInMonthHoliday =
                new DateHoliday(6, 6);

            Assert.Throws <ArgumentOutOfRangeException>(() => dayInMonthHoliday.GetDate(DateTime.MinValue.Year - 1));
        }
        public void Should_GetDate_Return_Calculated_Holiday_Date_When_For_Given_Year()
        {
            var dayInMonthHoliday =
                new DateHoliday(6, 6);

            var result = dayInMonthHoliday.GetDate(2014);

            Assert.Equal(new DateTime(2014, 6, 6), result);
        }
 internal static HolidayInformation ToHolidayInfo(DateHoliday holiday)
 {
     return new HolidayInformation
     {
         HolidayName = holiday.HoliName,
         StartTime = holiday.Starttime,
         EndTime = holiday.Endtime,
         DescMsg = holiday.Desc,
         HolidayID = holiday.ID,
         StockCode = holiday.PriceCode,
     };
 }