public void CreateCorrespondingProtocolTransformer_CreatesSearchEngineTransformer() { var validProtocol = new UriProtocol(null); var factory = new ProtocolTransformerFactory(); var transformer = factory.CreateCorrespondingProtocolTransformer(validProtocol); Assert.IsType <SearchEngineTransformer>(transformer); }
public void TransformProtocol(SearchEngine searchEngine) { var transformer = _transformerFactory.CreateCorrespondingProtocolTransformer(_protocol, searchEngine); _protocol = transformer?.Transform(); }