Example #1
0
        public void RegisterControllerCatalogWithAssemblyWithNullSuffix()
        {
            // Setup
            var mvc = new MvcEngine();

            // Execute
            mvc.RegisterControllerCatalog(a_directory: "Controllers", a_suffix: null, a_baseType: typeof(object));
        }
Example #2
0
        public void RegisterControllerCatalogWithNull()
        {
            // Setup
            var mvc = new MvcEngine();

            // Execute
            mvc.RegisterControllerCatalog(a_catalog: null);
        }
Example #3
0
        public void RegisterControllerCatalogWithAssembly()
        {
            // Setup
            var mvc = new MvcEngine();

            // Execute
            var result = mvc.RegisterControllerCatalog("Controllers", "", typeof(object));

            // Assert
            Assert.AreSame(mvc, result);
        }
Example #4
0
        public void RegisterControllerCatalog()
        {
            // Setup
            var mvc = new MvcEngine();
            var catalogController = new DirectoryCatalog(Assembly.GetExecutingAssembly(), "Controllers");

            // Execute
            var result = mvc.RegisterControllerCatalog(catalogController);

            // Assert
            Assert.AreSame(mvc, result);
        }
Example #5
0
        public void RegisterControllerCatalogWithNull()
        {
            // Setup
            var mvc = new MvcEngine();

            // Execute
            mvc.RegisterControllerCatalog(a_catalog: null);
        }
Example #6
0
        public void RegisterControllerCatalogWithAssemblyWithNullSuffix()
        {
            // Setup
            var mvc = new MvcEngine();

            // Execute
            mvc.RegisterControllerCatalog( a_directory: "Controllers", a_suffix: null, a_baseType: typeof(object));
        }
Example #7
0
        public void RegisterControllerCatalogWithAssembly()
        {
            // Setup
            var mvc = new MvcEngine();

            // Execute
            var result = mvc.RegisterControllerCatalog("Controllers", "", typeof(object));

            // Assert
            Assert.AreSame(mvc, result);
        }
Example #8
0
        public void RegisterControllerCatalog()
        {
            // Setup
            var mvc = new MvcEngine();
            var catalogController = new DirectoryCatalog(Assembly.GetExecutingAssembly(), "Controllers");

            // Execute
            var result = mvc.RegisterControllerCatalog(catalogController);

            // Assert
            Assert.AreSame(mvc, result);
        }