public void Index_Action_Test()
        {
            using (var controller = new DummyFlatTaxonomyController())
            {
                var viewAction = controller.Index() as ViewResult;

                Assert.IsNotNull(viewAction);
                Assert.IsNotNull(viewAction.Model is IFlatTaxonomyModel);
                Assert.IsTrue(viewAction.ViewName == "FlatTaxonomy.SimpleList");
            }
        }
        public void Index_Action_Test()
        {
            using (var controller = new DummyFlatTaxonomyController())
            {
                var viewAction = controller.Index() as ViewResult;

                Assert.IsNotNull(viewAction);
                Assert.IsNotNull(viewAction.Model is IFlatTaxonomyModel);
                Assert.IsTrue(viewAction.ViewName == "FlatTaxonomy.SimpleList");
            }
        }
        public void Index_Action_Test_PropertiesToTheViewAreChangedProperly()
        {
            using (var controller = new DummyFlatTaxonomyController())
            {
                string template = "custom template";
                controller.TemplateName = template;

                var viewAction = controller.Index() as ViewResult;

                Assert.IsNotNull(viewAction);
                Assert.IsNotNull(viewAction.Model is IFlatTaxonomyModel);
                Assert.IsTrue(viewAction.ViewName == "FlatTaxonomy." + template);
            }
        }
        public void Index_Action_Test_PropertiesToTheViewAreChangedProperly()
        {
            using (var controller = new DummyFlatTaxonomyController())
            {
                string template = "custom template";
                controller.TemplateName = template;

                var viewAction = controller.Index() as ViewResult;

                Assert.IsNotNull(viewAction);
                Assert.IsNotNull(viewAction.Model is IFlatTaxonomyModel);
                Assert.IsTrue(viewAction.ViewName == "FlatTaxonomy." + template);
            }
        }