/// <summary>
 /// Gets actualized days.
 /// </summary>
 /// <param name="calendar">The calendar.</param>
 /// <param name="countTerm">The count term.</param>
 /// <param name="start">The start.</param>
 /// <param name="end">The end.</param>
 /// <returns>Actualized calendar days collection.</returns>
 public static IEnumerable <ICalendarDay> GetDays(this ICalendar <ICalendarDay> calendar, BaseCountTerm countTerm,
                                                  DateTime start, DateTime end)
 {
     return(calendar.GetDays(countTerm, start, (end - start).Days + 1));
 }
        /// <summary>
        /// Gets actualized days.
        /// </summary>
        /// <param name="calendar">The calendar.</param>
        /// <param name="countTerm">The count term.</param>
        /// <param name="dateTime">The date time.</param>
        /// <param name="value">The value.</param>
        /// <returns>Actualized calendar days collection.</returns>
        public static IEnumerable <ICalendarDay> GetDays(this ICalendar <ICalendarDay> calendar, BaseCountTerm countTerm,
                                                         DateTime dateTime, int value)
        {
            countTerm.RegistrationDate = dateTime;
            int weeksCount = countTerm.GetWeeksCount(calendar.WeekTemplate, value + 1);
            IEnumerable <ICalendarDay> days = calendar.GenerateWeeks(dateTime, weeksCount);

            countTerm.ActualizeDays(ref days, dateTime);
            return(days);
        }