Example #1
0
        public void GetAllAppServiceForAll()
        {
            var servicePrefix = TestModule.ModuleName.ToCamelCase();
            var serviceName   = servicePrefix + "/" + typeof(TestAppService).Name.ToCamelCase().RemovePostFix(AppService.Postfixes);
            IDefaultControllerBuilderFactory factory = new DefaultControllerBuilderFactory(LocalIocManager);

            factory.ForAll <ITestAppService>(servicePrefix, servicesType).Build();

            TestAppService(serviceName);
        }
Example #2
0
        public void GetAllAppServiceForAll()
        {
            var servicePrefix                        = ModuleName;
            var serviceName                          = servicePrefix + "/" + typeof(TestAppService).Name.RemovePostFix(AppService.Postfixes);
            var defaultControllerManager             = new DefaultControllerManager();
            IDefaultControllerBuilderFactory factory = new DefaultControllerBuilderFactory(defaultControllerManager);

            factory.ForAll <ITestAppService>(servicePrefix, servicesType).Build();

            TestAppService(serviceName, defaultControllerManager);
        }