Example #1
0
 public AgroSearch(IBaseEntitySearch <GeoPointType> mainSearch, ISearchQueries queries, Implements <GeoPointType> implements, IHashSearchHelper hashOper)
 {
     this.hashOper       = hashOper;
     this.baseMainSearch = mainSearch;
     this.ServiceKey     = mainSearch.ServiceKey;
     this.UriService     = mainSearch.UriService;
     Index           = mainSearch.Index;
     this.implements = implements;
     _queries        = queries;
 }
Example #2
0
 /// <summary>
 /// AgroSearch usando mock de base de datos de busqueda
 /// </summary>
 /// <returns>AgroSearch</returns>
 public static IAgroSearch <GeoPointTs> AgroSearch(IBaseEntitySearch <GeoPointTs> baseSearch) => new AgroSearch <GeoPointTs>(baseSearch, new SearchQueries(), new ImplementMock(), new HashEntityAgroSearch());