Exemple #1
0
        public void ReturnTheCorrectResultsWhenTaggedWithOdataMethodIsUsed()
        {
            var actualResults = new EnumerableStack().Questions.TaggedWith("odata");

            DisplayPosts(actualResults);
            Assert.AreEqual(8, actualResults.Count());
        }
Exemple #2
0
        public void ReturnTheCorrectResultsWhenAskedInLast30DaysExpressionIsUsed()
        {
            var actualResults = new EnumerableStack().Questions.Where(Asked.InLast(30.Days()));

            DisplayPosts(actualResults);
            Assert.AreEqual(93, actualResults.Count());
        }
Exemple #3
0
        public void ReturnTheCorrectResultsWhenWithAcceptedAnswerMethodIsUsed()
        {
            var actualResults = new EnumerableStack().Questions.WithAcceptedAnswer();

            DisplayPosts(actualResults);
            Assert.AreEqual(32, actualResults.Count());
        }
Exemple #4
0
        public void ReturnTheCorrectResultsWhenQuestionsPropertyIsUsed()
        {
            var actualResults = new EnumerableStack().Questions;

            DisplayPosts(actualResults);
            Assert.AreEqual(93, actualResults.Count());
        }
Exemple #5
0
        public void ReturnTheCorrectResultsWhenACustomContextIsUsed()
        {
            var actualResults = new EnumerableStack().Posts;

            DisplayPosts(actualResults);
            Assert.AreEqual(95, actualResults.Count());
        }
 public void ReturnTheCorrectResultsWhenTheFullQueryExpressionIsUsed()
 {
     var actualResults = new EnumerableStack().Questions.WithAcceptedAnswer()
         .Where(Asked.InLast(30.Days()))
         .TaggedWith("odata");
     DisplayPosts(actualResults);
     Assert.AreEqual(2, actualResults.Count());
 }
Exemple #7
0
        public void ReturnTheCorrectResultsWhenTheFullQueryExpressionIsUsed()
        {
            var actualResults = new EnumerableStack().Questions.WithAcceptedAnswer()
                                .Where(Asked.InLast(30.Days()))
                                .TaggedWith("odata");

            DisplayPosts(actualResults);
            Assert.AreEqual(2, actualResults.Count());
        }
 public void ReturnTheCorrectResultsWhenWithAcceptedAnswerMethodIsUsed()
 {
     var actualResults = new EnumerableStack().Questions.WithAcceptedAnswer();
     DisplayPosts(actualResults);
     Assert.AreEqual(32, actualResults.Count());
 }
 public void ReturnTheCorrectResultsWhenTaggedWithOdataMethodIsUsed()
 {
     var actualResults = new EnumerableStack().Questions.TaggedWith("odata");
     DisplayPosts(actualResults);
     Assert.AreEqual(8, actualResults.Count());
 }
 public void ReturnTheCorrectResultsWhenQuestionsPropertyIsUsed()
 {
     var actualResults = new EnumerableStack().Questions;
     DisplayPosts(actualResults);
     Assert.AreEqual(93, actualResults.Count());
 }
 public void ReturnTheCorrectResultsWhenAskedInLast30DaysExpressionIsUsed()
 {
     var actualResults = new EnumerableStack().Questions.Where(Asked.InLast(30.Days()));
     DisplayPosts(actualResults);
     Assert.AreEqual(93, actualResults.Count());
 }
 public void ReturnTheCorrectResultsWhenACustomContextIsUsed()
 {
     var actualResults = new EnumerableStack().Posts;
     DisplayPosts(actualResults);
     Assert.AreEqual(95, actualResults.Count());
 }