public void Given_A_Card_SemanticSearch_Url_SearchResults_Should_Not_Empty(string searchUrl)
        {
            // Arrange

            // Act
            var results = _sut.CardsByUrl(searchUrl);

            // Assert
            results.Should().NotBeEmpty();
        }
Esempio n. 2
0
        public void Given_A_SemanticSearch_Url_Should_Extract_Cards_From_Url(string url)
        {
            // Arrange
            var htmlDocument = new HtmlWebPage().Load(url);
            var semanticUrl  = new TipRelatedHtmlDocument(_config).GetUrl(htmlDocument);

            // Act
            var result = _sut.CardsByUrl(semanticUrl);

            // Assert
            result.Should().NotBeNullOrEmpty();
        }