Example #1
0
        public void GetSpecificParkTest()
        {
            //Arrange
            ParkSqlDAL parkSqlDal = new ParkSqlDAL(connectionString);

            //Act
            Park park = parkSqlDal.GetSpecificPark("GNP");

            //Assert
            Assert.IsNotNull(park);
        }
Example #2
0
        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));
        }