Exemplo n.º 1
0
        public void GetPostByApproval(int postCount, bool isApproved, bool expected)
        {
            PostsResponse response = repo.GetByApproval(isApproved);

            Assert.AreEqual(expected, response.Success);
            if (expected == true)
            {
                Assert.AreEqual(postCount, response.Posts.Count());
            }
        }
Exemplo n.º 2
0
 public PostsResponse GetByApproval(bool approval)
 {
     return(repo.GetByApproval(approval));
 }