public void Index_Action_Returns_View() { var controller = new SetupController(facetService); var result = controller.Index(); result.AssertViewRendered(); }
public void Index() { var Result = setupController.Index() as ViewResult; Assert.IsNotNull(Result); Assert.IsInstanceOfType(Result, typeof(ViewResult)); var ResultModel = Result.Model as CansSetupModel; Assert.IsTrue(ResultModel.CansDetail.Count > 0); }