internal G.Examples CreateExamples(string name, string description, string[] headerCells, IEnumerable <string[]> exampleRows, string[] tags = null) { var examples = new G.Examples( tags?.Select(this.CreateTag).ToArray(), AnyLocation, "Examples", name, description, this.CreateGherkinTableRow(headerCells), exampleRows.Select(this.CreateGherkinTableRow).ToArray()); return(examples); }
public Example MapToExample(G.Examples examples) { if (examples == null) { return(null); } return(new Example { Description = examples.Description, Name = examples.Name, TableArgument = this.MapToTable(((G.IHasRows)examples).Rows) }); }
public Example MapToExample(G.Examples examples) { if (examples == null) { return(null); } return(new Example { Description = examples.Description, Name = examples.Name, TableArgument = this.MapToTable(((G.IHasRows)examples).Rows), Tags = examples.Tags?.Select(this.MapToString).ToList() }); }
public Example MapToExample(G.Examples examples) { return(this.mapper.Map <Example>(examples)); }
internal G.Examples CreateExamples(string name, string description, string[] headerCells, IEnumerable<string[]> exampleRows) { var examples = new G.Examples( null, AnyLocation, "Examples", name, description, this.CreateGherkinTableRow(headerCells), exampleRows.Select(this.CreateGherkinTableRow).ToArray()); return examples; }
public ScenarioOutline(Tag[] tags, Location location, string keyword, string name, string description, Step[] steps, Examples[] examples) : base(location, keyword, name, description, steps) { Tags = tags; Examples = examples; }