public void GetResultsTest() { //Arrange SurveySqlDAL surveyDal = new SurveySqlDAL(connectionString); //Act List <Survey> results = surveyDal.GetResults(); //Assert Assert.IsTrue(results.Count <= 10); }
public ActionResult SurveyResults() { List <Survey> surveyResults = surveyDal.GetResults(); return(View(surveyResults)); }