public void GetSpecificParkTest() { //Arrange ParkSqlDAL parkSqlDal = new ParkSqlDAL(connectionString); //Act Park park = parkSqlDal.GetSpecificPark("GNP"); //Assert Assert.IsNotNull(park); }
public ActionResult ParkDetail(string id) { ParkSqlDAL parkDAL = new ParkSqlDAL(connectionString); Park thisPark = parkDAL.GetSpecificPark(id); if (Session["TemperatureMeasure"] != null) { thisPark.IsFarenheit = (bool)Session["TemperatureMeasure"]; } else { Session["TemperatureMeasure"] = true; } return(View("ParkDetail", thisPark)); }