Exemplo n.º 1
0
 public IEnumerable <Date> Filter(IPeriod period)
 {
     return(_daySelectors
            .Select(daySelector => daySelector.PickDays(period.Days()))
            .SelectMany(daySequence => _ordinals.Pick(daySequence)));
 }
Exemplo n.º 2
0
 public IEnumerable <TPeriod> Pick(IEnumerable <TPeriod> periods)
 => _ordinal.Pick(periods);
 public IEnumerable <Date> Filter(IPeriod period)
 => _ordinals.Pick(_weekDay
                   .PickDays(period.Days())
                   .Where(day => day.Day == _nth));