public void DownloadsAUrl() { var targetRequest = WebRequest.CreateHttp("https://tddapps.com"); _webRequestFactory.CreateHttp("my url") .Returns(targetRequest); _webRequestExecutor.Run(targetRequest) .Returns("tdd rocks"); _downloader .Download("my url") .Should() .Be("tdd rocks"); }
public void LoadFromUrl(Uri url) { LoadRaw(UrlDownloader.Download(url)); }