public void GetAllPostsTest() { SurveySqlDAL dal = new SurveySqlDAL(connectionString); List <SurveyModel> result = dal.GetAllPosts(); Assert.AreEqual(1, result.Count); }
public ActionResult SurveyResult() { surveyDAL.GetAllPosts(); return(View("SurveyResult")); }