public void StartApp(AppInitializationInfo appConfiguration, ServicesCollection childContainer) { try { var wrappedWebDriver = WrappedWebDriverCreateService.Create(appConfiguration, childContainer); childContainer.RegisterInstance <WindowsDriver <WindowsElement> >(wrappedWebDriver); ////childContainer.RegisterInstance(new AppService(wrappedWebDriver)); ////childContainer.RegisterInstance(new ComponentCreateService()); childContainer.RegisterNull <int?>(); childContainer.RegisterNull <IWebElement>(); childContainer.RegisterNull <WindowsElement>(); IsAppStartedCorrectly = true; } catch (Exception e) { e.PrintStackTrace(); IsAppStartedCorrectly = false; throw; } }
public void StartApp(AppConfiguration appConfiguration, ServicesCollection childContainer) { try { var wrappedWebDriver = WrappedWebDriverCreateService.Create(appConfiguration, childContainer); childContainer.RegisterInstance(wrappedWebDriver); childContainer.RegisterInstance(new AppService(wrappedWebDriver)); childContainer.RegisterInstance(new ElementCreateService()); childContainer.RegisterNull <int?>(); childContainer.RegisterNull <IWebElement>(); childContainer.RegisterNull <WindowsElement>(); IsAppStartedCorrectly = true; } catch (Exception e) { Console.WriteLine(e); IsAppStartedCorrectly = false; throw; } }