public ActionResult SurveyResults()
        {
            SurveySqlDAL  surveySD   = new SurveySqlDAL(connectionString);
            List <Survey> allsurveys = surveySD.GetAllSurveys();

            return(View("SurveyResults", allsurveys));
        }
Exemplo n.º 2
0
        public void GetAllSurveysTest()
        {
            SurveySqlDAL  surveyDAL  = new SurveySqlDAL(connectionString);
            List <Survey> surveyList = surveyDAL.GetAllSurveys();

            Assert.IsNotNull(surveyList);
            Assert.AreEqual(surveys, surveyList.Count);
        }