public Task ExecuteAsync(IStep step, Func <Task> stepInvocation) { CapturedMessages.Add(_prefix + ": " + step.Info.Name.ToString()); return(stepInvocation.Invoke()); }
public Task ExecuteAsync(IScenario scenario, Func <Task> scenarioInvocation) { CapturedMessages.Add(_prefix + ": " + scenario.Info.Name.ToString()); return(scenarioInvocation.Invoke()); }