Пример #1
0
        public void Index_Action_Returns_View()
        {
            var controller = new SetupController(facetService);
            var result     = controller.Index();

            result.AssertViewRendered();
        }
Пример #2
0
        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);
        }