public CronFieldTester(string Name, CronField Field, IEnumerable<int> ExpectedValues) : this(Name, Field, ExpectedValues, null) { }
public CronFieldTester(string Name, CronField Field, IEnumerable<int> ExpectedValues, int? ExpectedOccurranceIndex) { _Name = Name; _Field = Field; _ExpectedValues = ExpectedValues; _ExpectedOccurranceIndex = ExpectedOccurranceIndex; }
/// <summary> /// Constructor for cron specification of event intervals. /// </summary> /// <param name="MinuteSpec">Minute spec.</param> /// <param name="HourSpec">Hour spec.</param> /// <param name="DaySpec">Day spec.</param> /// <param name="MonthSpec">Month spec.</param> /// <param name="DayOfWeekSpec">Day of week spec.</param> /// <param name="Duration">Duration of event.</param> public CronSchedule(string MinuteSpec, string HourSpec, string DaySpec, string MonthSpec, string DayOfWeekSpec, TimeSpan Duration) { _MinuteLookup = new CronField(MinuteSpec, 0, 59); _HourLookup = new CronField(HourSpec, 0, 23); _DayLookup = new CronField(DaySpec, 1, 31); _MonthLookup = new CronField(MonthSpec, 1, 12); _DayOfWeekLookup = new CronField(DayOfWeekSpec, 0, 6, XlatDOW); _Duration = Duration; }