public void TestGetRelativeDate(int year, int month, RelativeDayInMonth relativeDay, DayOfWeek day, int expectedDay)
        {
            var result = ScheduledTriggerService.GetRelativeDate(year, month, relativeDay, day);

            Assert.Equal(year, result.Year);
            Assert.Equal(month, result.Month);
            Assert.Equal(expectedDay, result.Day);
        }
        public void TestGetNextWeekDate(DateTime now, DateTime weekStart, IEnumerable <DayOfWeek> days, DateTime?expectedResult)
        {
            var result = ScheduledTriggerService.GetNextWeekDate(now, weekStart, days);

            Assert.Equal(expectedResult, result);
        }
        public void TestGetNextWeekday(DateTime start, DayOfWeek day, DateTime expectedDay)
        {
            var result = ScheduledTriggerService.GetNextWeekday(start, day);

            Assert.Equal(expectedDay, result);
        }