private IEnumerable <WebpageComponent> GetWebpageComponents(Uri baseUrl, IEnumerable <string> siteMap) { foreach (var singleLink in siteMap) { var subpageUri = new Uri(baseUrl, singleLink); var subpageDocument = _webBrowser.Load(subpageUri); yield return(new WebpageComponent { SourceCode = subpageDocument.Text, AbsolutePath = _fileStorage.CleanFileName(subpageUri.ToString()) }); } }