Пример #1
0
 public void SetUp()
 {
     testContext = TestContextFactory.Get(opts => opts
                                          .UseEntryAssembly(typeof(WindsorRegistrationOptionsTestCase).Assembly)
                                          .RegisterTagHelpers(typeof(OverrideTagHelper).Assembly)
                                          .RegisterControllers(typeof(OverrideController).Assembly)
                                          .RegisterTagHelpers(typeof(OverrideViewComponent).Assembly));
 }
 public override void SetUp()
 {
     testContext = TestContextFactory.Get(opts => opts
                                          .UseEntryAssembly(typeof(WindsorRegistrationOptionsTestCase).Assembly)
                                          .RegisterTagHelpers(Component.For <OverrideTagHelper>().LifestyleScoped().Named("tag-helpers"))
                                          .RegisterControllers(Component.For <OverrideController>().LifestyleScoped().Named("controllers"))
                                          .RegisterViewComponents(Component.For <OverrideViewComponent>().LifestyleScoped().Named("view-components")));
 }
 public override void SetUp()
 {
     testContext = TestContextFactory.Get(opts => opts
                                          .UseEntryAssembly(typeof(Uri).Assembly)
                                          .RegisterControllers(Component.For <OverrideController>().LifestyleScoped().Named("controllers")));
 }
 public override void SetUp()
 {
     testContext = TestContextFactory.Get(opts => opts
                                          .UseEntryAssembly(typeof(Uri).Assembly)
                                          .RegisterControllers(typeof(OverrideController).Assembly));
 }
 public override void SetUp()
 {
     testContext = TestContextFactory.Get(opts => opts
                                          .UseEntryAssembly(typeof(Uri).Assembly)
                                          .RegisterViewComponents(Component.For <OverrideViewComponent>().LifestyleScoped().Named("view-components")));
 }
 public override void SetUp()
 {
     testContext = TestContextFactory.Get(opts => opts
                                          .UseEntryAssembly(typeof(Uri).Assembly)
                                          .RegisterViewComponents(typeof(OverrideViewComponent).Assembly));
 }
Пример #7
0
 public void SetUp()
 {
     testContext = TestContextFactory.Get();
 }
 public void SetUp()
 {
     testContext = TestContextFactory.Get();
     frameworkDependencyResolver = new FrameworkDependencyResolver(testContext.ServiceCollection);
     frameworkDependencyResolver.AcceptServiceProvider(testContext.ServiceProvider);
 }