예제 #1
0
 public Scenario(
     string title,
     IEnumerable <IStep> steps,
     int startingLineNumber,
     IEnumerable <Tag> tags)
 {
     Title = title;
     StartingLineNumber = startingLineNumber;
     Steps = steps.ToList().AsReadOnly();
     Tags  = new ReadOnlyTagCollection(tags.ToList());
 }
예제 #2
0
 public Rule(
     string title,
     Background background,
     IEnumerable <Scenario> scenarios,
     IEnumerable <ScenarioOutline> scenarioOutlines,
     IEnumerable <Tag> tags)
 {
     Title            = title;
     Background       = background;
     Scenarios        = scenarios.ToList().AsReadOnly();
     ScenarioOutlines = new ReadOnlyScenarioOutlineCollection(
         scenarioOutlines.ToList());
     Tags = new ReadOnlyTagCollection(tags.ToList());
 }
예제 #3
0
 public Feature(
     string title,
     string narrative,
     Background background,
     IEnumerable <Scenario> scenarios,
     IEnumerable <ScenarioOutline> scenarioOutlines,
     IEnumerable <Rule> rules,
     IEnumerable <Tag> tags)
 {
     Title            = title;
     Narrative        = narrative;
     Background       = background;
     Scenarios        = scenarios.ToList().AsReadOnly();
     ScenarioOutlines = new ReadOnlyScenarioOutlineCollection(
         scenarioOutlines.ToList());
     Rules = rules.ToList().AsReadOnly();
     Tags  = new ReadOnlyTagCollection(tags.ToList());
 }