public void TestInit() { IHtmlWebWrapper htmlWeb = Substitute.For <IHtmlWebWrapper>(); htmlWeb.Load(Arg.Any <Uri>()).Returns(_expectedContent); _pageProvider = new PageProvider(htmlWeb); }
/// <exception cref="ArgumentNullException"></exception> /// <exception cref="UriFormatException"></exception> public string GetPageContent(string url) { Uri uri = new Uri(url); return(_htmlWeb.Load(uri)); }