Ejemplo n.º 1
0
 public void Can_load_html()
 {
     var htmlLoader = new HtmlLoader(new Uri("http://www.google.co.uk"));
     string load = htmlLoader.Load();
     Assert.That(load, Is.Not.Null);
     Assert.That(load.Length > 0);
 }
        public void Reader_should_return_some_results()
        {
            var htmlLoader = new HtmlLoader(new Uri(RESULTS_PAGE_FOLDER));

            var fluentHtmlSelector = new FluentHtmlSelector(htmlLoader){BaseUrl = BASE_URL};

            var britishHorseracingWebReader = new BritishHorseracingWebReader(fluentHtmlSelector);

            var results = britishHorseracingWebReader.GetResults().ToList();
        }