Beispiel #1
0
        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();
        }
Beispiel #2
0
 public override void BeforeEach(SimpleExecutionContext execution, ISpecContext context)
 {
     context.State.Store(_daemonHelper);
 }
Beispiel #3
0
 public override void BeforeEach(SimpleExecutionContext execution, ISpecContext context)
 {
     // Executes before each specification run
 }
Beispiel #4
0
 public override void BeforeEach(SimpleExecutionContext execution, ISpecContext context)
 {
     // Executes before each specification run
     // Handy for setting up expected state or cleaning
     // up state left over from previous tests
 }
Beispiel #5
0
 public override void BeforeEach(SimpleExecutionContext execution, ISpecContext context)
 {
     LastBeforeEach = context;
 }
Beispiel #6
0
 public override void BeforeEach(SimpleExecutionContext execution, ISpecContext context)
 {
     context.ConnectionString(ConnectionString);
 }