private void StopScenario(ExecutionTimeWatch watch)
        {
            ScenarioExecutionContext.Current = null;
            DisposeScope();
            watch.Stop();
            _result.UpdateResult(
                _preparedSteps.Select(s => s.Result).ToArray(),
                watch.GetTime());

            _scenarioContext.ProgressNotifier.NotifyScenarioFinished(_result);
            _scenarioContext.OnScenarioFinished?.Invoke(_result);
        }
Exemple #2
0
 private void StopStep(ExecutionTimeWatch watch, bool stepStartNotified)
 {
     ScenarioExecutionContext.Current.Get <CurrentStepProperty>().RemoveCurrent(this);
     DisposeComposite();
     watch.Stop();
     _result.SetExecutionTime(watch.GetTime());
     _result.IncludeSubStepDetails();
     if (stepStartNotified)
     {
         _stepContext.ProgressNotifier.NotifyStepFinished(_result);
     }
 }