//GET: Search
        public ActionResult Search(int id)
        {
            CampSiteSqlDAL campSiteDAL = new CampSiteSqlDAL(connectionString);
            CampSearch     campSearch  = campSiteDAL.RetrieveInfo(id);

            return(View("Search", campSearch));
        }
Exemple #2
0
        public void RetrieveInfoTest()
        {
            //Arrange
            CampSiteSqlDAL campgroundSqlDal = new CampSiteSqlDAL(connectionString);

            //Act
            CampSearch campsearch = campgroundSqlDal.RetrieveInfo(1);

            //Assert
            Assert.IsNotNull(campsearch);
            Assert.AreEqual(nameOfCampground, campsearch.CampgroundName);
        }