private UrlPositionSearchService CreateUrlPositionSearchServiceForTesting() { Mock <IGoogleSearchService> googleSearchServiceMock = new Mock <IGoogleSearchService>(); googleSearchServiceMock.Setup(x => x.GetUrlsFromGoogleSearch(_keywords)) .Returns(_searchResultUrls); UrlPositionSearchService urlPositionSearchService = new UrlPositionSearchService(googleSearchServiceMock.Object); return(urlPositionSearchService); }
public UrlSearchServiceTests() { _urlSearchService = CreateUrlPositionSearchServiceForTesting(); }