Example #1
0
 public ScheduleBuilder(LsfScheduleClient client, IScheduleItemFactory <S> factory)
 {
     _factory = factory;
     _client  = client;
 }
Example #2
0
 public IEnumerable <S> GetFixedScheduleItems(Event e, IScheduleItemFactory <S> factory)
 {
     return(e.HasSmallGroup
         ? e.SmallGroups.Where(sg => FixedSmallGroupNames.Contains(sg.Name)).SelectMany(g => g.Appointments.Select(a => factory.Create(a, g)))
         : e.Appointments.Select(a => factory.Create(a, e)));
 }