public Background(string keyword, string title, string description, ScenarioSteps scenarioSteps) { Keyword = keyword; Title = title ?? ""; Description = description ?? ""; Steps = scenarioSteps ?? new ScenarioSteps(); }
public Scenario(string keyword, string title, string description, Tags tags, ScenarioSteps scenarioSteps) { Keyword = keyword; Title = title; Description = description; Tags = tags; Steps = scenarioSteps ?? new ScenarioSteps(); }
/// <summary> /// Converts the provided <see cref="SpecFlow.ScenarioSteps"/> instance into an enumerable collection of <see cref="Augurk.Entities.Step"/> instances. /// </summary> /// <param name="steps">The <see cref="SpecFlow.ScenarioSteps"/> instance that should be converted.</param> /// <returns>An enumerable collection of <see cref="Augurk.Entities.Step"/> instances.</returns> public static IEnumerable <Step> ConvertToSteps(this SpecFlow.ScenarioSteps steps) { if (steps == null) { return(new Step[0]); } return(steps.Select(step => step.ConvertToStep()).ToArray()); }
public ScenarioOutline(string keyword, string title, string description, Tags tags, ScenarioSteps scenarioSteps, Examples examples) : base(keyword, title, description, tags, scenarioSteps) { Examples = examples; }