protected static void AssertIsTermQuery(IQueryContainer query1, IQueryContainer query2) { query1.Term.Should().NotBeNull(); query2.Term.Should().NotBeNull(); query2.Should().NotBeNull(); query2.Term.Field.Should().Be(query1.Term.Field); query2.Term.Value.Should().Be(query1.Term.Value); }
private void LotsOfAnds(IQueryContainer lotsOfAnds, int iterations = 100) { lotsOfAnds.Should().NotBeNull(); lotsOfAnds.Bool.Should().NotBeNull(); lotsOfAnds.Bool.Must.Should().NotBeEmpty().And.HaveCount(iterations); }
private void DefaultMustAssert(IQueryContainer lotsOfAnds) { lotsOfAnds.Should().NotBeNull(); lotsOfAnds.Bool.Should().NotBeNull(); lotsOfAnds.Bool.Must.Should().NotBeEmpty().And.HaveCount(Iterations); }
private void LotsOfOrs(IQueryContainer lotsOfOrs) { lotsOfOrs.Should().NotBeNull(); lotsOfOrs.Bool.Should().NotBeNull(); lotsOfOrs.Bool.Should.Should().NotBeEmpty().And.HaveCount(Iterations); }
private void LotsOfOrs(IQueryContainer lotsOfOrs) { lotsOfOrs.Should().NotBeNull(); lotsOfOrs.Bool.Should().NotBeNull(); lotsOfOrs.Bool.Should.Should().NotBeEmpty().And.HaveCount(100); }
private void LotsOfAnds(IQueryContainer lotsOfAnds) { lotsOfAnds.Should().NotBeNull(); lotsOfAnds.Bool.Should().NotBeNull(); lotsOfAnds.Bool.Must.Should().NotBeEmpty().And.HaveCount(100); }
private void LotsOfUnaryAdds(IQueryContainer lotsOfUnaryAdds) { lotsOfUnaryAdds.Should().NotBeNull(); lotsOfUnaryAdds.Bool.Should().NotBeNull(); lotsOfUnaryAdds.Bool.Filter.Should().NotBeEmpty().And.HaveCount(100); }