Exemplo n.º 1
0
        public void GetAppServiceForOneWithDefault()
        {
            var serviceName = TestModule.ModuleName + "/Test";
            IDefaultControllerBuilderFactory factory = new DefaultControllerBuilderFactory(LocalIocManager);

            factory.For <ITestAppService>(serviceName).WithApiExplorer(true).Build();

            TestAppService(serviceName);
        }
Exemplo n.º 2
0
        public void GetAppServiceForOneWithDefault()
        {
            var serviceName = ModuleName + "/Test";

            var defaultControllerManager             = new DefaultControllerManager();
            IDefaultControllerBuilderFactory factory = new DefaultControllerBuilderFactory(defaultControllerManager);

            factory.For <ITestAppService>(ModuleName, serviceName).WithApiExplorer(true).Build();

            TestAppService(serviceName, defaultControllerManager);
        }