Пример #1
0
        public static WeekSlots CreateAllDaysOfWeekWithNoAvailability(Guid facilityId, DateTime dtMonday)
        {
            var weekWithNoAvailability = new WeekSlots();

            return(new WeekSlots()
            {
                FacilityId = facilityId,
                ConsecutiveDaysOfWeek = new List <DaySlots>()
                {
                    DaySlots.CreateDayWithNoAvailability(dtMonday),
                    DaySlots.CreateDayWithNoAvailability(dtMonday.AddDays(1)),
                    DaySlots.CreateDayWithNoAvailability(dtMonday.AddDays(2)),
                    DaySlots.CreateDayWithNoAvailability(dtMonday.AddDays(3)),
                    DaySlots.CreateDayWithNoAvailability(dtMonday.AddDays(4)),
                    DaySlots.CreateDayWithNoAvailability(dtMonday.AddDays(5)),
                    DaySlots.CreateDayWithNoAvailability(dtMonday.AddDays(6))
                }
            });
        }
Пример #2
0
 public void AddDayToWeek(Guid facilityId, DaySlots daySlots)
 {
     FacilityId = facilityId;
     this.ConsecutiveDaysOfWeek.Add(daySlots);
 }