Beispiel #1
0
        /// <summary>
        /// Performs actions after each test.
        /// </summary>
        /// <param name="test">Test.</param>
        public void AfterTest(ITest test)
        {
            var scenario    = ScenarioAdapter.GetScenario(test);
            var outcome     = GetOutcome(test);
            var integration = integrationReader.GetIntegration(test);

            integration.AfterScenario(scenario, outcome);
        }
Beispiel #2
0
        /// <summary>
        /// Performs actions before each test.
        /// </summary>
        /// <param name="test">Test.</param>
        public void BeforeTest(ITest test)
        {
            var scenario = ScenarioAdapter.GetScenario(test);

            test.Properties.Add(ScenarioAdapter.ScreenplayScenarioKey, scenario);
            var integration = integrationReader.GetIntegration(test);

            integration.BeforeScenario(scenario);
        }