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()); }
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()); }
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()); }