public void GetWeek_ShouldReturnEmptyDaysWithNotWorkingApiCalls(DateTime dateTime)
        {
            ISchedule roomSchedule = new RoomSchedule(apiConfig, logger, failingApiCalls);
            string    roomName     = "H.1.308";

            var reservations = roomSchedule.GetWeek(dateTime, roomName);

            Assert.All(reservations.Values, day => Assert.All(day.Values, reservation => Assert.Null(reservation)));
        }
        public void GetDay_ShouldBeSubsetOfGetWeek(DateTime dateTime)
        {
            ISchedule roomSchedule = new RoomSchedule(apiConfig, logger, apiCalls);
            string    roomName     = "H.1.308";

            var reservationsForWeek = roomSchedule.GetWeek(dateTime, roomName);
            var reservationsForDay  = roomSchedule.GetDay(dateTime, roomName);

            Assert.Contains(reservationsForDay, reservationsForWeek.Values);
        }
        public void GetWeek_ShouldWorkWithValidDates(DateTime dateTime)
        {
            ISchedule roomSchedule = new RoomSchedule(apiConfig, logger, apiCalls);
            string    roomName     = "H.1.308";

            var reservations = roomSchedule.GetWeek(dateTime, roomName);

            Assert.True(reservations.Count == 7);
            Assert.All(reservations.Values, day => Assert.True(day.Values.Count == 15));
        }