/// <summary> /// Creates the first of two day holiday. /// </summary> /// <param name="factory">The factory.</param> /// <param name="month">The month.</param> /// <param name="date">The date.</param> /// <returns>IYearlyRecurringEvent.</returns> public static IYearlyRecurringEvent CreateFirstOfTwoDayHoliday(this IYearlyRecurringEventFactory factory, Month month, int date) => factory.CreateFixedDateEvent(month, date, GetFirstOfTwoDayHoliday);
/// <summary> /// Creates the nearest weekday event. /// </summary> /// <param name="factory">The factory.</param> /// <param name="month">The month.</param> /// <param name="date">The date.</param> /// <returns>IYearlyRecurringEvent.</returns> public static IYearlyRecurringEvent CreateNearestWeekdayEvent(this IYearlyRecurringEventFactory factory, Month month, int date) => factory.CreateFixedDateEvent(month, date, GetNearestWeekday);