// GET: Survey
        public ActionResult Index()
        {
            SurveySqlDAL  surveyDAL  = new SurveySqlDAL(connectionString);
            List <Survey> surveyList = surveyDAL.GetSurveys();

            return(View("Index", surveyList));
        }
Exemplo n.º 2
0
        public void GetSurveysTest()
        {
            //Arrange
            SurveySqlDAL surveySqlDal = new SurveySqlDAL(connectionString);

            //Act
            List <Survey> surveys = surveySqlDal.GetSurveys();

            //Assert
            Assert.IsNotNull(surveys);
            Assert.AreEqual(numberOfParksWithSurvey, surveys.Count);
        }