Exemplo n.º 1
0
        public void GetResultsTest()
        {
            //Arrange
            SurveySqlDAL surveyDal = new SurveySqlDAL(connectionString);

            //Act
            List <Survey> results = surveyDal.GetResults();

            //Assert
            Assert.IsTrue(results.Count <= 10);
        }
Exemplo n.º 2
0
        public ActionResult SurveyResults()
        {
            List <Survey> surveyResults = surveyDal.GetResults();

            return(View(surveyResults));
        }