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)); }
public void SetUp() { testContext = TestContextFactory.Get(); }
public void SetUp() { testContext = TestContextFactory.Get(); frameworkDependencyResolver = new FrameworkDependencyResolver(testContext.ServiceCollection); frameworkDependencyResolver.AcceptServiceProvider(testContext.ServiceProvider); }