Esempio n. 1
0
        public ConventionBuilder SetTimeSlotStrategy(LocalDate localDate, TimeSlotStrategy strategy)
        {
            ThrowsIfDateNotExists(localDate);
            var existingDay = this[localDate];

            existingDay.TimeSlotStrategy = strategy;
            return(Parent);
        }
Esempio n. 2
0
        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");
        }
Esempio n. 3
0
 public ConventionBuilder SetTimeSlotStrategy(TimeSlotStrategy strategy)
 {
     _convention.Inner.TimeStrategy = strategy;
     return(this);
 }