Пример #1
0
        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);
        }
Пример #2
0
        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);
        }