public void ReturnTheCorrectResultsWhenTaggedWithOdataMethodIsUsed() { var actualResults = new EnumerableStack().Questions.TaggedWith("odata"); DisplayPosts(actualResults); Assert.AreEqual(8, actualResults.Count()); }
public void ReturnTheCorrectResultsWhenAskedInLast30DaysExpressionIsUsed() { var actualResults = new EnumerableStack().Questions.Where(Asked.InLast(30.Days())); DisplayPosts(actualResults); Assert.AreEqual(93, actualResults.Count()); }
public void ReturnTheCorrectResultsWhenWithAcceptedAnswerMethodIsUsed() { var actualResults = new EnumerableStack().Questions.WithAcceptedAnswer(); DisplayPosts(actualResults); Assert.AreEqual(32, actualResults.Count()); }
public void ReturnTheCorrectResultsWhenQuestionsPropertyIsUsed() { var actualResults = new EnumerableStack().Questions; DisplayPosts(actualResults); Assert.AreEqual(93, actualResults.Count()); }
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()); }