[Test] public virtual void testOrderByTenantIdDesc() { // when IList <IBatch> orderedBatches = managementService.CreateBatchQuery() /*.OrderByTenantId()*//*.Desc()*/.ToList(); // then TestOrderingUtil.verifySorting(orderedBatches, TestOrderingUtil.inverted(TestOrderingUtil.batchByTenantId())); }
public virtual void testOrderByTenantIdDesc() { // when IList <IHistoricBatch> orderedBatches = historyService.CreateHistoricBatchQuery() /*.OrderByTenantId()*//*.Desc()*/.ToList(); // then TestOrderingUtil.verifySorting(orderedBatches, TestOrderingUtil.inverted(TestOrderingUtil.historicBatchByTenantId())); }
protected internal virtual void verifyQueryWithOrdering(HistoricJobLogQuery query, int countExpected, TestOrderingUtil.NullTolerantComparator <HistoricJobLog> expectedOrdering) { verifyQueryResults(query, countExpected); TestOrderingUtil.verifySorting(query.list(), expectedOrdering); }