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);
 }
Esempio n. 3
0
 private void DefaultMustAssert(IQueryContainer lotsOfAnds)
 {
     lotsOfAnds.Should().NotBeNull();
     lotsOfAnds.Bool.Should().NotBeNull();
     lotsOfAnds.Bool.Must.Should().NotBeEmpty().And.HaveCount(Iterations);
 }
Esempio n. 4
0
 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);
		}
Esempio n. 6
0
 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);
 }
		private void LotsOfUnaryAdds(IQueryContainer lotsOfUnaryAdds)
		{
			lotsOfUnaryAdds.Should().NotBeNull();
			lotsOfUnaryAdds.Bool.Should().NotBeNull();
			lotsOfUnaryAdds.Bool.Filter.Should().NotBeEmpty().And.HaveCount(100);
		}
		private void DefaultMustAssert(IQueryContainer lotsOfAnds)
		{
			lotsOfAnds.Should().NotBeNull();
			lotsOfAnds.Bool.Should().NotBeNull();
			lotsOfAnds.Bool.Must.Should().NotBeEmpty().And.HaveCount(Iterations);
		}