public HighlightSearchRequestSpecification(SearchRequestSpecification <T> query)
 => _query = query ?? throw new ArgumentNullException($"{nameof(query)} cannot be null.");
Ejemplo n.º 2
0
 public PaginatedSearchRequestSpecification(SearchRequestSpecification <T> query, int page, int size)
 {
     _query = query ?? throw new ArgumentNullException($"{nameof(query)} cannot be null.");
     _page  = page > 0 ? page : 1;
     _size  = size > 0 ? size : 10;
 }