Blog.Logic.Core.Tests.PostsLogicTest.ShouldReturnEmptyListWhenGetMorePopularPostsFoundNoRecords C# (CSharp) Method

ShouldReturnEmptyListWhenGetMorePopularPostsFoundNoRecords() private method

        public void ShouldReturnEmptyListWhenGetMorePopularPostsFoundNoRecords()
        {
            _postRepository = new Mock<IPostRepository>();
            _postRepository.Setup(a => a.GetMorePopularPosts(It.IsAny<Expression<Func<Post, bool>>>(), It.IsAny<int>(), It.IsAny<int>()))
                .Returns(new List<Post>());

            _postContentRepository = new Mock<IPostContentRepository>();
            _mediaRepository = new Mock<IMediaRepository>();

            _postsLogic = new PostsLogic(_postRepository.Object, _postContentRepository.Object,
                _mediaRepository.Object);

            var result = _postsLogic.GetMorePopularPosts(5, 5);

            Assert.AreEqual(0, result.Count);
        }
PostsLogicTest