public void CraigslistBot_BotRentImages_ShouldReturnImageUrls() { string url = RENT_URL; string html = File.ReadAllText("BotHtml\\CraigslistRent.html"); CraigslistBot bot = new CraigslistBot(url, _mockMapper.Object, html); var images = bot.BotImages(); images.Should().NotBeNull(); images.Count().Should().Be(12); }
public void CraigslistBot_BotRentUrl_ShouldReturnProperty() { string url = RENT_URL; string html = File.ReadAllText("BotHtml\\CraigslistRent.html"); CraigslistBot bot = new CraigslistBot(url, _mockMapper.Object, html); var property = bot.Bot(); property.Should().NotBeNull(); property.Amount.Should().Be(1600); property.SquareFootage.Should().Be(1200); property.NumberOfBedrooms.Should().Be(2); property.NumberOfBathrooms.Should().Be(2.5m); property.SourceUrl.Should().Be(url); property.Latitude.Should().Be(35.234644m); property.Longitude.Should().Be(-80.853613m); }