public async Task TestEventGrabberFromFile()
        {
            HtmlItem        iturl = HtmlItemFactory.GetHtmlItem(ContentLib.Constants.LocationType.FILE, @"Cloud\\Classes\\Data\\Events.html");
            WebStiteGrabber wg    = new WebStiteGrabber(iturl);
            string          str   = await wg.GrabAsync();

            //Assert
            Assert.AreNotEqual(String.Empty, str);
        }
        public async Task TestVenueGrabberFromWeb()
        {
            //Arrange
            HtmlItem        iturl = HtmlItemFactory.GetHtmlItem(ContentLib.Constants.LocationType.WEB, "https://theblueshound.com/venue-listing");
            WebStiteGrabber wg    = new WebStiteGrabber(iturl);
            string          str   = await wg.GrabAsync();

            //Assert
            Assert.AreNotEqual(String.Empty, str);
        }
Exemple #3
0
 public WebStiteGrabber(HtmlItem hItem)
 {
     htmlItem = hItem;
 }