public IPositions GetUrlPositionsImplementation(EnumSeoEngineType seoEngineType)
        {
            switch (seoEngineType)
            {
            case EnumSeoEngineType.Google:
                return(new UrlPositions(_logger));

            case EnumSeoEngineType.Bing:
                return(new BingUrlPositions(_logger));
            }
            return(null);
        }
Exemplo n.º 2
0
        public ISeoEngine GetSeoEngine(EnumSeoEngineType seoEngineType)
        {
            switch (seoEngineType)
            {
            case EnumSeoEngineType.Google:
                return(new GoogleSeoEngine.GoogleSeoEngine(_requestProcessor, _urlConstructor, _positions, _parserUtility));

            case EnumSeoEngineType.Bing:
                return(new MicrosoftSeoEngine(_requestProcessor, _urlConstructor, _positions, _parserUtility));

            default:
                break;
            }

            return(null);
        }