public void Add(DayRulePolicy policy, string description, IEnumerable <IYearMatcher> yearMatchers, IEnumerable <IMonthMatcher> monthMatchers, IEnumerable <IDayOfMonthMatcher> dayOfMonthMatchers, IEnumerable <IDayOfWeekMatcher> dayOfWeekMatchers, IEnumerable <TimePeriod> workingPeriods ) => Add(policy, new DayRule(description, yearMatchers, monthMatchers, dayOfMonthMatchers, dayOfWeekMatchers, workingPeriods));
public void Add(DayRulePolicy policy, DayRule rule) => Add(new CalendarRule(policy, rule));
public CalendarRule(DayRulePolicy policy, DayRule rule) { Policy = policy; Rule = rule ?? throw new ArgumentNullException(nameof(rule)); }