public ConventionBuilder SetTimeSlotStrategy(LocalDate localDate, TimeSlotStrategy strategy) { ThrowsIfDateNotExists(localDate); var existingDay = this[localDate]; existingDay.TimeSlotStrategy = strategy; return(Parent); }
public TimeSlotOptions GenerateTimeSlots(LocalTime start, LocalTime end, TimeSlotStrategy strategy) { switch (strategy) { case TimeSlotStrategy.StartEvery2Hours_Duration246Windows: return(StartEvery2Hours_Duration246Windows(start, end)); } throw new Exception("Unknown Time Slots Strategy"); }
public ConventionBuilder SetTimeSlotStrategy(TimeSlotStrategy strategy) { _convention.Inner.TimeStrategy = strategy; return(this); }