public MatchEngineFactory(IMatchStrategy <THole, TFill, TMatch> matchStrategy, IFillProvider <TFill> fillProvider, IFilterStrategyFactory <THole, TFill> filterStrategyProvider, IFilter <TMatch> matchFilter) { _matchFilter = matchFilter; var fillProviderFactory = new FilteredFillProviderFactory <THole, TFill>(fillProvider, filterStrategyProvider); _matchProvider = new MatchProvider <THole, TFill, TMatch>(matchStrategy, fillProviderFactory); }
public ImageMatchProviderFactory( IMatchStrategy <IImageData, IImageData, ImageMatch> matchStrategy, IFilterStrategyFactory <IImageData, IImageData> filterStrategyFactory, IFilter <ImageMatch> matchFilter) { _matchStrategy = matchStrategy; _filterStrategyFactory = filterStrategyFactory; _matchFilter = matchFilter; }
public List <Item> getMenuItems(IMatchStrategy strategy) { List <Item> menuitems = new List <Item>(); IWebElement visibleContainer = getVisibleItemContainer(); IList <IWebElement> items = visibleContainer.FindElements(MenuItem); foreach (IWebElement item in items) { if (items.Count > 0) { Item menuitem = new Item(item, _driver); if (strategy.MatchProduct(menuitem)) { menuitems.Add(menuitem); } } } return(menuitems); }
internal Match(IMatchStrategy matchStrategy) => MatchStrategy = matchStrategy;
public MatchProvider(IMatchStrategy <THole, TFill, TMatch> matchStrategy, IFillProviderFactory <THole, TFill> fillProviderFactory) { _matchStrategy = matchStrategy; _fillProviderFactory = fillProviderFactory; }