//GET: ParkSearch
        public ActionResult ParkSearch(int id)
        {
            ParkSearchSqlDAL parkSearchDAL = new ParkSearchSqlDAL(connectionString);
            ParkSearch       parkSearch    = parkSearchDAL.RetrieveInfo(id);

            return(View("ParkSearch", parkSearch));
        }
Esempio n. 2
0
        public void RetrieveInfoTest()
        {
            //Arrange
            ParkSearchSqlDAL parkSeachSqlDal = new ParkSearchSqlDAL(connectionString);

            //Act
            ParkSearch parksearch = parkSeachSqlDal.RetrieveInfo(1);

            //Assert
            Assert.IsNotNull(parksearch);
            Assert.AreEqual(nameOfPark, parksearch.ParkName);
        }