Esempio n. 1
0
        public void GetArticleWithNotExistingIdShouldReturn404()
        {
            var response = ApiEndpoints.GetArticle(999);

            Assert.Equal(HttpStatusCode.NotFound, response.StatusCode);
        }
Esempio n. 2
0
        public void GetArticleWithExistingIdShouldReturn200()
        {
            var response = ApiEndpoints.GetArticle(1);

            Assert.Equal(HttpStatusCode.OK, response.StatusCode);
        }