예제 #1
0
        public virtual CountResultDto getHistoricBatchesCount(UriInfo uriInfo)
        {
            HistoricBatchQueryDto queryDto = new HistoricBatchQueryDto(objectMapper, uriInfo.QueryParameters);
            HistoricBatchQuery    query    = queryDto.toQuery(processEngine);

            long count = query.count();

            return(new CountResultDto(count));
        }
예제 #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUpHistoricBatchQueryMock()
        public virtual void setUpHistoricBatchQueryMock()
        {
            IList <HistoricBatch> mockHistoricBatches = MockProvider.createMockHistoricBatches();

            queryMock = mock(typeof(HistoricBatchQuery));

            when(queryMock.list()).thenReturn(mockHistoricBatches);
            when(queryMock.count()).thenReturn((long)mockHistoricBatches.Count);

            when(processEngine.HistoryService.createHistoricBatchQuery()).thenReturn(queryMock);
        }