コード例 #1
0
        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);
        }
コード例 #2
0
 public ModelBuilder(IGherkinParserEvents gherkinEvents)
 {
     featureBuilder           = new FeatureBuilder(gherkinEvents);
     examplesBuilder          = new ExamplesBuilder(gherkinEvents);
     inlineStepBuilderBuilder = new StepBuilder(gherkinEvents);
 }