private static ScrapeResult Scrape(ILateFlightsScraper scraper, IWebRequestFactory requestFactory, string url) { var webRequest = requestFactory.Create(url.Replace("&", "&")); var response = webRequest.GetResponse(); var scrapeResult = scraper.Scrape(response.GetResponseStream()); return scrapeResult; }
private static IEnumerable<string> ScrapeDepartureAirports(ILateFlightsScraper scraper, IWebRequestFactory requestFactory) { return scraper.ScrapeDepartureAirports(requestFactory.Create("http://flights.thomson.co.uk/en/index.html").GetResponseStream()); }