protected internal virtual CountResultDto getAuthorizationCount(AuthorizationQueryDto queryDto) { AuthorizationQuery query = queryDto.toQuery(ProcessEngine); long count = query.count(); return(new CountResultDto(count)); }
private AuthorizationQuery setUpMockQuery(IList <Authorization> list) { AuthorizationQuery query = mock(typeof(AuthorizationQuery)); when(query.list()).thenReturn(list); when(query.count()).thenReturn((long)list.Count); when(processEngine.AuthorizationService.createAuthorizationQuery()).thenReturn(query); return(query); }