示例#1
0
        private bool TestBookRoom(int slotNumber, string date, int roomNumber)
        {
            var day   = ParseDay(date);
            var user  = new User(Guid.NewGuid(), "John", "Doe");
            var slots = day.ComputeSlots(slotDuration).ToArray();
            var room  = rooms[roomNumber];

            ;
            return(reservationService.BookRoom(room, user, slots[slotNumber]).Status == BookingStatus.Accepted);
        }