Example #1
0
        public void ListSpacesNotReserved()
        {
            ReservationSqlDAO  reservationDAO = new ReservationSqlDAO(connectionString);
            List <Reservation> spaceList      = reservationDAO.ListSpacesNotReserved(Convert.ToDateTime("06/25/2020"), Convert.ToDateTime("06/29/2020"), 7);

            bool result = false;

            foreach (Reservation res in spaceList)
            {
                if (res.Name == "The Royal Room")
                {
                    result = true;
                }
            }

            Assert.IsTrue(result);
        }