Esempio n. 1
0
        public async Task Given_A_DomainUrl_NewArticleResultSet_Should_Contain_Atleast_1_Item(string domainUrl)
        {
            // Arrange
            var sut = new WikiArticle(domainUrl);

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

            // Assert
            result.Items.Should().NotBeEmpty();
        }
Esempio n. 2
0
        public async Task Given_A_DomainUrl_Should_Successfully_Retrieve_NewArticles(string domainUrl)
        {
            // Arrange
            var sut = new WikiArticle(domainUrl);

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

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