private ICustomizedScenarioBuilder NewScenario(MethodBase scenarioMethod) { return(NewScenario(_metadataProvider.GetScenarioName(scenarioMethod)) .WithLabel(_metadataProvider.GetScenarioLabel(scenarioMethod)) .WithCategories(_metadataProvider.GetScenarioCategories(scenarioMethod).ToArray())); }
public void RunScenario <TContext>(params Action <TContext>[] steps) where TContext : new() { var method = GetScenarioMethod(); RunScenario(new TContext(), _metadataProvider.GetScenarioName(method), _metadataProvider.GetScenarioLabel(method), steps); }