public void ThankYouReturnsModel() { using (var controller = new SurveysController(null, null)) { var result = controller.ThankYou() as ViewResult; var model = result.ViewData.Model as TenantMasterPageViewData; Assert.AreEqual("Thank you for filling the survey", model.Title); } }
public void ThankYouReturnsModel() { using (var controller = new SurveysController(new Mock <ISurveyManagementService>().Object, new Mock <ISurveyAnswerService>().Object)) { var result = controller.ThankYou() as ViewResult; var model = result.ViewData.Model as MasterPageViewData; Assert.AreEqual("Thank you for filling out the survey", model.Title); } }