public void SearchReservationIsNotBooked() { //arrange ReservationSqlDAO reservationDAO = new ReservationSqlDAO(connectionString); DateTime selectedFromDate = Convert.ToDateTime("2020-01-01"); DateTime selectedToDate = Convert.ToDateTime("2020-01-10"); int selectedCampgroundID = 4; //act string actualResult = reservationDAO.SearchReservation(selectedCampgroundID, selectedFromDate, selectedToDate); //assert Assert.AreEqual(actualResult, "Results Matching Your Search Criteria"); }
public void SearchReservationIsBooked() { //arrange ReservationSqlDAO reservationDAO = new ReservationSqlDAO(connectionString); DateTime selectedFromDate = Convert.ToDateTime("2000-01-01"); DateTime selectedToDate = Convert.ToDateTime("2030-01-01"); int selectedCampgroundID = 4; //act string actualResult = reservationDAO.SearchReservation(selectedCampgroundID, selectedFromDate, selectedToDate); //assert Assert.AreEqual("Sorry! No reservations available for that date range!", actualResult); }