public TestRunnerManager(IObjectContainer globalContainer, ITestRunContainerBuilder testRunContainerBuilder, RuntimeConfiguration runtimeConfiguration, IRuntimeBindingRegistryBuilder bindingRegistryBuilder) { this.globalContainer = globalContainer; this.testRunContainerBuilder = testRunContainerBuilder; this.runtimeConfiguration = runtimeConfiguration; this.bindingRegistryBuilder = bindingRegistryBuilder; }
public TestRunnerManager(IObjectContainer globalContainer, ITestRunContainerBuilder testRunContainerBuilder, RuntimeConfiguration runtimeConfiguration, IRuntimeBindingRegistryBuilder bindingRegistryBuilder) { this.globalContainer = globalContainer; this.testRunContainerBuilder = testRunContainerBuilder; this.runtimeConfiguration = runtimeConfiguration; this.bindingRegistryBuilder = bindingRegistryBuilder; }
private static ITestRunnerManager CreateTestRunnerManager(Assembly testAssembly, ITestRunContainerBuilder testRunContainerBuilder = null) { testRunContainerBuilder = testRunContainerBuilder ?? new TestRunContainerBuilder(); var container = testRunContainerBuilder.CreateContainer(); var testRunnerManager = container.Resolve <ITestRunnerManager>(); testRunnerManager.Initialize(testAssembly); return(testRunnerManager); }
private static ITestRunnerManager GetTestRunnerManager(Assembly testAssembly, ITestRunContainerBuilder testRunContainerBuilder = null) { ITestRunnerManager testRunnerManager; if (!testRunnerManagerRegistry.TryGetValue(testAssembly, out testRunnerManager)) { lock (testRunnerManagerRegistrySyncRoot) { if (!testRunnerManagerRegistry.TryGetValue(testAssembly, out testRunnerManager)) { testRunnerManager = CreateTestRunnerManager(testAssembly, testRunContainerBuilder); testRunnerManagerRegistry.Add(testAssembly, testRunnerManager); } } } return(testRunnerManager); }
private static ITestRunnerManager CreateTestRunnerManager(Assembly testAssembly, ITestRunContainerBuilder testRunContainerBuilder = null) { testRunContainerBuilder = testRunContainerBuilder ?? new TestRunContainerBuilder(); var container = testRunContainerBuilder.CreateContainer(); var testRunnerManager = container.Resolve<ITestRunnerManager>(); testRunnerManager.Initialize(testAssembly); return testRunnerManager; }
private static ITestRunnerManager GetTestRunnerManager(Assembly testAssembly, ITestRunContainerBuilder testRunContainerBuilder = null) { ITestRunnerManager testRunnerManager; if (!testRunnerManagerRegistry.TryGetValue(testAssembly, out testRunnerManager)) { lock (testRunnerManagerRegistrySyncRoot) { if (!testRunnerManagerRegistry.TryGetValue(testAssembly, out testRunnerManager)) { testRunnerManager = CreateTestRunnerManager(testAssembly, testRunContainerBuilder); testRunnerManagerRegistry.Add(testAssembly, testRunnerManager); } } } return testRunnerManager; }