You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recurrable components are mutable -- rules can be created at will, so caching the result of a previous computation is potentially invalid:
[Test]publicvoidAddExDateToEventAfterGetOccurrencesShouldRecomputeResult(){varsearchStart=_now.AddDays(-1);varsearchEnd=_now.AddDays(7);vare=GetEventWithRecurrenceRules();varoccurrences=e.GetOccurrences(searchStart,searchEnd);Assert.IsTrue(occurrences.Count==5);varexDate=_now.AddDays(1);varperiod=newPeriod(newCalDateTime(exDate));varperiodList=newPeriodList{period};e.ExceptionDates.Add(periodList);occurrences=e.GetOccurrences(searchStart,searchEnd);Assert.IsTrue(occurrences.Count==4);//Specifying just a date should "black out" that datevarexcludeTwoDaysFromNow=_now.AddDays(2).Date;period=newPeriod(newCalDateTime(excludeTwoDaysFromNow));periodList.Add(period);occurrences=e.GetOccurrences(searchStart,searchEnd);Assert.IsTrue(occurrences.Count==3);}privatestaticreadonlyDateTime_now=DateTime.Now;privatestaticreadonlyDateTime_later=_now.AddHours(1);privatestaticEventGetEventWithRecurrenceRules(){vardailyForFiveDays=newRecurrencePattern(FrequencyType.Daily,1){Count=5,};varcalendarEvent=newEvent{Start=newCalDateTime(_now),End=newCalDateTime(_later),RecurrenceRules=newList<IRecurrencePattern>{dailyForFiveDays},Resources=newHashSet<string>(new[]{"Foo","Bar","Baz"}),};returncalendarEvent;}
EXDATE values that specify only a date should "black out" occurrences where the start time of the event falls on that date.
The text was updated successfully, but these errors were encountered:
Recurrable components are mutable -- rules can be created at will, so caching the result of a previous computation is potentially invalid:
EXDATE
values that specify only a date should "black out" occurrences where the start time of the event falls on that date.The text was updated successfully, but these errors were encountered: