private Dictionary <int, CampSite> SearchReservation(DateTime[] reservationRange, int campgroundSelection) { CampSiteSQLDAL campSiteSql = new CampSiteSQLDAL(); Dictionary <int, CampSite> output = new Dictionary <int, CampSite>(); output = campSiteSql.ListCampSites(reservationRange, campgroundSelection); return(output); }
public void ListCampSites_Test() //checks to ensure dictionary items exist (IsNotNull) { int campgroundSelection = 1; DateTime[] dateTimeTest = new DateTime[2]; dateTimeTest[0] = new DateTime(2018, 10, 20); dateTimeTest[1] = new DateTime(2018, 10, 25); output = campSiteSql.ListCampSites(dateTimeTest, campgroundSelection); Assert.IsNotNull(output); }