public SequenceGroup GetCommandSequences(string filename, string[] sequences) { var sg = new SequenceGroup(); ExcelStorage dataProvider = new ExcelStorage(typeof(UICommand)); dataProvider.StartRow = 2; dataProvider.StartColumn = 1; dataProvider.FileName = filename; foreach (var sheetName in sequences) { dataProvider.SheetName = sheetName; var commands = (UICommand[])dataProvider.ExtractRecords(); sg.Sequences.Add(sheetName, new UICommandContainer(sheetName, commands.Where(x=>x.Enabled.ToLower()=="y" || x.Enabled.ToLower()=="yes").ToArray())); } return sg; }
public TestCase() { CommandGroups = new SequenceGroup(); }
public TestCase() { CommandGroups = new SequenceGroup(); }