Пример #1
0
        public ColorPickerWCModel GetFullColorPickerModel()
        {
            AllRowsWithColorsWCModel     rows       = GetAllRowsWithColors();
            allColorsInSingleRowWCModel  colors     = GetColorsFromSingleRow();
            RightPanelColorPickerWCModel rightPanel = GetRightPanelColorPickerModel();
            ColorPickerWCModel           model      = new ColorPickerWCModel(rows, colors, rightPanel);

            return(model);
        }
Пример #2
0
        private allColorsInSingleRowWCModel GetColorsFromSingleRow()
        {
            allColorsInSingleRowWCModel allColorsInSingleRow = new allColorsInSingleRowWCModel(_manager.Driver);
            var singleRow = GetSingleRowsWithColors();
            var colors    = _manager.FindWebElements(By.ClassName(ColorPickerLocators.singleColorLocator));

            foreach (var singleColor in colors)
            {
                allColorsInSingleRow.allColorsInSingleRow.Add(new SingleColorWCModel(singleColor));
            }
            return(allColorsInSingleRow);
        }
Пример #3
0
 public ColorPickerWCModel(AllRowsWithColorsWCModel allRowsWithColorsWCModels, allColorsInSingleRowWCModel allColors, RightPanelColorPickerWCModel rightPanel)
 {
     this.allRowsWithColorsWCModels = allRowsWithColorsWCModels;
     this.allColors  = allColors;
     this.rightPanel = rightPanel;
 }