public void Dispose() { ProxyService?.Dispose(); DisposeDriverService.DisposeAll(); DisposeDriverService.Dispose(); GC.SuppressFinalize(this); }
public void DisposeAll() { foreach (var childContainer in ServicesCollection.Current.GetChildServicesCollections()) { var driver = childContainer.Resolve <IWebDriver>(); DisposeDriverService.Dispose(driver, childContainer); } }
private void ShutdownApp(ServicesCollection container) { DisposeDriverService.Dispose(container); var appConfiguration = new AppInitializationInfo(); // BUG: If we use ReuseIfStarted, there is a new child container for each class and when // we initialize a new childcontainer the _previousAppConfiguration is missing and the app // is still opened. Probably this won't work in parallel. container.RegisterInstance(appConfiguration, "_previousAppConfiguration"); ////container.UnregisterSingleInstance<TestExecutionEngine>(); }
public void ExecuteAbortTestRunLogic() => DisposeDriverService.Dispose();
public void Dispose(ServicesCollection container) { var webDriver = container.Resolve <IWebDriver>(); DisposeDriverService.Dispose(webDriver, container); }
public void Dispose(ServicesCollection childContainer) => DisposeDriverService.Dispose(childContainer);