Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 public TestCase()
 {
     CommandGroups = new SequenceGroup();
 }
Exemplo n.º 3
0
 public TestCase()
 {
     CommandGroups = new SequenceGroup();
 }