public void HomeController_SurveySubmitAction_ReturnSurveySubmitView()
        {
            //Arrange
            SurveyController controller = new SurveyController();

            //Act
            ViewResult result = controller.SurveySubmit() as ViewResult;

            //Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("SurveySubmit", result.ViewName);
        }
        public void HomeController_SurveySubmitAction_RedirectToIndexView()
        {
            //Arrange
            SurveySqlDAL     mockDal    = new SurveySqlDAL(connectionString);
            SurveyController controller = new SurveyController();
            SurveyForm       model      = new SurveyForm()
            {
                ParkCode      = "gnp",
                EmailAddress  = "*****@*****.**",
                State         = "test",
                ActivityLevel = "test"
            };

            //Act
            mockDal.SubmitSurvey(model);
            RedirectToRouteResult result = controller.SurveySubmit(model) as RedirectToRouteResult;

            //Assert
            Assert.IsNotNull(result);
            Assert.AreEqual("Index", result.RouteValues["action"]);
        }