Ejemplo n.º 1
0
 public CommandCall(ICommand command, Element element, string expression, Resource resource)
 {
     Children   = new CommandCallList();
     Command    = command;
     Element    = element;
     Expression = expression;
     Resource   = resource;
 }
Ejemplo n.º 2
0
        private void PopulateCommandCallByColumnMap()
        {
            Row             headerRow = GetLastHeaderRow();
            CommandCallList children  = TableCommandCall.Children;

            foreach (CommandCall childCall in children)
            {
                int columnIndex = headerRow.GetIndexOfCell(childCall.Element);
                if (columnIndex == -1)
                {
                    throw new Exception("Commands must be placed on <th> elements when using 'execute' or 'verifyRows' commands on a <table>.");
                }
                CommandCallByColumn.Add(columnIndex, childCall);
            }
        }