예제 #1
0
        public async Task GetMoreBlogPosts_Ok()
        {
            //Act
            var response = await _blogController.Search(1);

            var blogPosts = response.CastJsonResult <IEnumerable <BlogPostViewModel> >();

            //Assert
            Assert.True(response is JsonResult);
            Assert.NotNull(blogPosts);
        }