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

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