Esempio n. 1
0
        public async void GetRelatedArticlesAsyncShouldReturnRelatedArticles()
        {
            //Arrange
            Article article = new Article {
                contentUrl = "https://content.watchmedier.dk/api/finanswatch/content/article/9590291"
            };

            article = await _articleController.GetArticleDetailsAsync(article);

            //Act
            IList <Article> relatedArticles = await _articleController.GetRelatedArticlesAsync(article);

            //Assert
            Assert.IsNotEmpty(relatedArticles);
        }