예제 #1
0
 public static TaskScenarioLine[] ConvertLines(ScenarioLine[] lines)
 {
     var body = new TaskScenarioLine[lines.Length];
     for (int i = 0; i < lines.Length; i++)
         body[i] = new TaskScenarioLine { LineNumber = lines[i].LineNumber, Text = lines[i].Text };
     return body;
 }
예제 #2
0
        public static ScenarioLine[] GetScenarioLines(TaskScenarioLine[] inLines)
        {
            var lines = new ScenarioLine[inLines.Length];
            for (int i = 0; i < lines.Length; i++)
            {
                lines[i] = new ScenarioLine { Text = inLines[i].Text, LineNumber = inLines[i].LineNumber };
            }

            return lines;
        }