public ColorPickerWCModel GetFullColorPickerModel() { AllRowsWithColorsWCModel rows = GetAllRowsWithColors(); allColorsInSingleRowWCModel colors = GetColorsFromSingleRow(); RightPanelColorPickerWCModel rightPanel = GetRightPanelColorPickerModel(); ColorPickerWCModel model = new ColorPickerWCModel(rows, colors, rightPanel); return(model); }
private AllRowsWithColorsWCModel GetAllRowsWithColors() { AllRowsWithColorsWCModel result = new AllRowsWithColorsWCModel(); IList <IWebElement> allRows = _manager.FindWebElements(By.XPath(ColorPickerLocators.singleRowLocator)); foreach (var item in allRows) { result.allRows.Add(new SingleRowWithColorsWCModel(item)); } return(result); }
public ColorPickerWCModel(AllRowsWithColorsWCModel allRowsWithColorsWCModels, allColorsInSingleRowWCModel allColors, RightPanelColorPickerWCModel rightPanel) { this.allRowsWithColorsWCModels = allRowsWithColorsWCModels; this.allColors = allColors; this.rightPanel = rightPanel; }