Пример #1
0
        public void TruliaBot_BotBuyImages_ShouldReturnImages()
        {
            string url  = PROPERTY_URL;
            string html = File.ReadAllText("BotHtml\\TruliaProperty.html");

            TruliaBot bot    = new TruliaBot(url, _mapper, html);
            var       images = bot.BotImages();

            images.Should().NotBeNull();
            images.Count().Should().Be(35);
        }
Пример #2
0
        public void TruliaBot_BotRentalImages_ShouldReturnImages()
        {
            string url  = RENTAL_URL;
            string html = File.ReadAllText("BotHtml\\TruliaRental.html");

            TruliaBot bot    = new TruliaBot(url, _mapper, html);
            var       images = bot.BotImages();

            images.Should().NotBeNull();
            images.Count().Should().Be(35);
        }