Posts() public method

Return collection of posts based on pagination parameters.
public Posts ( int pageNo, int pageSize ) : IList
pageNo int Page index
pageSize int Page size
return IList
Exemplo n.º 1
0
 public void Get_all_posts_returns_3()
 {
     var testRepository = new BlogRepository(MockContext);
     IEnumerable<Post> result = testRepository.Posts(0, 3);
     Assert.That(result.Count(), Is.EqualTo(3));
 }