コード例 #1
0
        [Test]   public virtual void testOrderByTenantIdDesc()
        {
            // when
            IList <IBatch> orderedBatches = managementService.CreateBatchQuery() /*.OrderByTenantId()*//*.Desc()*/.ToList();

            // then
            TestOrderingUtil.verifySorting(orderedBatches, TestOrderingUtil.inverted(TestOrderingUtil.batchByTenantId()));
        }
コード例 #2
0
        public virtual void testOrderByTenantIdDesc()
        {
            // when
            IList <IHistoricBatch> orderedBatches = historyService.CreateHistoricBatchQuery() /*.OrderByTenantId()*//*.Desc()*/.ToList();

            // then
            TestOrderingUtil.verifySorting(orderedBatches, TestOrderingUtil.inverted(TestOrderingUtil.historicBatchByTenantId()));
        }
コード例 #3
0
 protected internal virtual void verifyQueryWithOrdering(HistoricJobLogQuery query, int countExpected, TestOrderingUtil.NullTolerantComparator <HistoricJobLog> expectedOrdering)
 {
     verifyQueryResults(query, countExpected);
     TestOrderingUtil.verifySorting(query.list(), expectedOrdering);
 }