public async Task <List <Tuple <string, string> > > Handle(GetPositionNumberQuery request, CancellationToken cancellationToken)
        {
            List <string> selectedEngines = new List <string>(request.Engines.Split(' '));

            List <string> supportedEngines = _searchServices.GetSupportedSearchEngine();

            foreach (var engine in selectedEngines)
            {
                var match = supportedEngines.FirstOrDefault(e => e.ToLower() == engine.ToLower());

                if (match == null)
                {
                    ValidationException exception = new ValidationException($"{engine} is not supported!");
                    throw exception;
                }
            }

            List <Tuple <string, string> > lstNumbers = await _searchServices.GetPositionNumber(
                selectedEngines,
                request.KeyWords,
                request.URL,
                request.Within);

            return(lstNumbers);
        }
 public async Task <List <string> > Handle(GetSupportedEnginesQuery request, CancellationToken cancellationToken)
 {
     return(_searchServices.GetSupportedSearchEngine());
 }