Example #1
0
        public async Task Given_An_ArticleCategory_The_Response_Items_Collection_Should_Not_Be_Empty(string domainUrl, string category)
        {
            // Arrange
            var wikiaArticleList = new WikiArticleList(domainUrl, WikiaSettings.ApiVersion);

            // Act
            var result = await wikiaArticleList.AlphabeticalList(category);

            // Assert
            result.Items.Should().NotBeEmpty();
        }
Example #2
0
        public async Task Given_An_ArticleListRequestParameters_The_Response_Items_Collection_Should_Not_Be_Empty(string domainUrl, string category)
        {
            // Arrange
            var wikiaArticleList = new WikiArticleList(domainUrl, WikiaSettings.ApiVersion);

            // Act
            var result = await wikiaArticleList.ArticleList <UnexpandedListArticleResultSet>(new ArticleListRequestParameters { Category = category }, false);

            // Assert
            result.Items.Should().NotBeEmpty();
        }
Example #3
0
        public async Task Given_An_NewArticleResultSet_Should_Return_New_Articles()
        {
            // Arrange
            const string domainUrl        = "http://yugioh.fandom.com";
            var          wikiaArticleList = new WikiArticleList(domainUrl, WikiaSettings.ApiVersion);

            // Act
            var result = await wikiaArticleList.NewArticles();

            // Assert
            result.Items.Should().NotBeEmpty();
        }