public void ExecuteActionInsideControlScope(string controlScopeId, string action, Table table) { var stepDefinitionType = ScenarioStepContext.Current.StepInfo.StepDefinitionType; var scopeId = new ControlScopeId(controlScopeId); using (var controlScopeRuntime = _contextManager.UseControlScopeContextRuntime(scopeId)) { controlScopeRuntime.RunAction(action, stepDefinitionType, table); } }
public void ExecuteMultipleActionsInsideControlScope(string controlScopeId, [NotNull] Table actionsTable) { var stepDefinitionType = ScenarioStepContext.Current.StepInfo.StepDefinitionType; var scopeId = new ControlScopeId(controlScopeId); using (var controlScopeRuntime = _contextManager.UseControlScopeContextRuntime(scopeId)) { foreach (var action in actionsTable.Rows) { controlScopeRuntime.RunAction(action.Values.First(), stepDefinitionType); } } }