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

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

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

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

            // Assert
            Assert.AreSame(mvc, result);
        }
Beispiel #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);
        }
Beispiel #5
0
        public void RegisterControllerCatalogWithNull()
        {
            // Setup
            var mvc = new MvcEngine();

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

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

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

            // Assert
            Assert.AreSame(mvc, result);
        }
Beispiel #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);
        }