public void InitializeStepContext(StepInfo stepInfo) { var newContext = new ScenarioStepContext(stepInfo); stepContextManager.Init(newContext); ScenarioStepContext.Current = newContext; }
public void InitializeStepContext(StepInfo stepInfo) { stepDepth++; var newContext = new ScenarioStepContext(stepInfo); stepContextManager.Init(newContext); if (ExecutingTopLevelStep()) { CurrentTopLevelStep = newContext; } ScenarioStepContext.Current = newContext; }