Exemplo n.º 1
0
        public void Should_make_orderby_with_multiple_fields()
        {
            var i = S(SortBuilder.Ascending("data/age/iv"), SortBuilder.Descending("data/firstName/en"));
            var o = C("{ 'do.4.iv' : 1, 'do.1.en' : -1 }");

            Assert.Equal(o, i);
        }
Exemplo n.º 2
0
        public void Should_make_orderby_with_multiple_fields()
        {
            var i = S(SortBuilder.Ascending("lastModified"), SortBuilder.Descending("lastModifiedBy"));
            var o = C("{ 'LastModified' : 1, 'LastModifiedBy' : -1 }");

            Assert.Equal(o, i);
        }
Exemplo n.º 3
0
        public void Should_make_orderby_with_multiple_fields()
        {
            var sorting1 = SortBuilder.Ascending("created");
            var sorting2 = SortBuilder.Descending("createdBy");

            AssertSorting("{ 'ct' : 1, 'cb' : -1 }", sorting1, sorting2);
        }
Exemplo n.º 4
0
        public void Should_make_orderby_with_multiple_fields()
        {
            var sorting1 = SortBuilder.Ascending("Number");
            var sorting2 = SortBuilder.Descending("Text");

            AssertSorting("{ 'Number' : 1, 'Text' : -1 }", sorting1, sorting2);
        }
Exemplo n.º 5
0
        public void Should_make_orderby_with_multiple_fields()
        {
            var sorting1 = SortBuilder.Ascending("data/age/iv");
            var sorting2 = SortBuilder.Descending("data/firstName/en");

            AssertSorting("{ 'do.age.iv' : 1, 'do.firstName.en' : -1 }", sorting1, sorting2);
        }