public void FixtureSetup() { var lifecycle = BrowserForTesting.Use <TBrowser>(); var context = new TestContext(); var applicationUnderTest = new StubbedApplicationUnderTest { Browser = lifecycle }; context.Store <IApplicationUnderTest>(applicationUnderTest); SetUp(context); }
public void FixtureSetup() { var lifecycle = BrowserForTesting.Use <TBrowser>(); var services = new InMemoryServiceLocator(); Context = new SpecContext(null, new Timings(), new NulloResultObserver(), new StopConditions(), services); var applicationUnderTest = new StubbedApplicationUnderTest { Browser = lifecycle }; applicationUnderTest.Driver.Manage().Timeouts().SetScriptTimeout(TimeSpan.FromMilliseconds(1000)); services.Add <IApplicationUnderTest>(applicationUnderTest); SetUp(); }
public void FixtureSetup() { var lifecycle = BrowserForTesting.Use <TBrowser>(); var simpleExecutionContext = new SimpleExecutionContext(); Context = new SpecContext(null, new Timings(), new NulloResultObserver(), new StopConditions(), simpleExecutionContext); var applicationUnderTest = new StubbedApplicationUnderTest { Browser = lifecycle }; applicationUnderTest.Driver.Manage().Timeouts().SetScriptTimeout(TimeSpan.FromMilliseconds(1000)); simpleExecutionContext.Register <IApplicationUnderTest>(applicationUnderTest); SetUp(); }