public void FindUnapproved_Should_Return_Paged_Result()
 {
     using (BeginTransaction())
     {
         GenerateStories(false, true, false);
         _database.SubmitChanges();
         var pagedResult = _storyRepository.FindUnapproved(0, 5);
         Assert.Equal(5, pagedResult.Result.Count);
         Assert.True(pagedResult.Total >= 10);
     }
 }
        public void FindUnapproved_Should_Return_Paged_Result()
        {
            var story1 = CreateStory(false);
            var story2 = CreateStory(false);
            var story3 = CreateStory(false);

            Stories.AddRange(new[] { story1 as Story, story2 as Story, story3 as Story });
            var pagedResult = _storyRepository.FindUnapproved(0, 10);

            Assert.Equal(3, pagedResult.Result.Count);
            Assert.Equal(3, pagedResult.Total);
        }