Esempio n. 1
0
        public void TestInit()
        {
            IHtmlWebWrapper htmlWeb = Substitute.For <IHtmlWebWrapper>();

            htmlWeb.Load(Arg.Any <Uri>()).Returns(_expectedContent);
            _pageProvider = new PageProvider(htmlWeb);
        }
Esempio n. 2
0
        /// <exception cref="ArgumentNullException"></exception>
        /// <exception cref="UriFormatException"></exception>
        public string GetPageContent(string url)
        {
            Uri uri = new Uri(url);

            return(_htmlWeb.Load(uri));
        }