Example #1
0
        public bool ObservedHoliday()
        {
            if (new LastDayOfWeekInMonth(DayOfWeek.Monday, _date.Year, 5, 31).Value() == _date)
            {
                return(true);
            }

            return(_nextStrategy.ObservedHoliday());
        }
Example #2
0
        public bool ObservedHoliday()
        {
            if (new NthInstanceOfDayOfWeekInMonth(4, DayOfWeek.Thursday, _date.Year, 11, 30).Value() == _date)
            {
                return(true);
            }

            return(_nextStrategy.ObservedHoliday());
        }
Example #3
0
        public bool ObservedHoliday()
        {
            if (!new WeekendDay(_date) && _date.Month == 12 && _date.Day == 25)
            {
                return(true);
            }
            if (new WeekendHolidayObservance(new DateTime(_date.Year, 12, 25), _date))
            {
                return(true);
            }

            return(_nextStrategy.ObservedHoliday());
        }
Example #4
0
        public bool ObservedHoliday()
        {
            if (!_weekendDay && _date.Month == 1 && _date.Day == 1)
            {
                return(true);
            }
            if (_weekendHolidayObservance)
            {
                return(true);
            }

            return(_nextStrategy.ObservedHoliday());
        }
Example #5
0
        public bool ObservedHoliday()
        {
            if (!new WeekendDay(_date) && _date.Month == 12 && _date.Day == 24)
            {
                return(true);
            }
            if (_date.DayOfWeek == DayOfWeek.Friday && _date.Month == 12 && (_date.Day == 22 || _date.Day == 23))
            {
                return(true);
            }

            return(_nextStrategy.ObservedHoliday());
        }