public GherkinFeatureBuilder WithScenarioOutline(string name, Action <GherkinStepBuilder> buildSteps, Action <ExamplesBuilder> buildExamples) { var stepBuilder = new GherkinStepBuilder(); buildSteps(stepBuilder); var examplesBuilder = new ExamplesBuilder(); buildExamples(examplesBuilder); _definitions.Add(new ScenarioOutline(new Tag[0], null, null, name, null, stepBuilder.Steps, examplesBuilder.Examples)); return(this); }
public ModelBuilder(IGherkinParserEvents gherkinEvents) { featureBuilder = new FeatureBuilder(gherkinEvents); examplesBuilder = new ExamplesBuilder(gherkinEvents); inlineStepBuilderBuilder = new StepBuilder(gherkinEvents); }