예제 #1
0
        protected internal virtual CountResultDto getAuthorizationCount(AuthorizationQueryDto queryDto)
        {
            AuthorizationQuery query = queryDto.toQuery(ProcessEngine);
            long count = query.count();

            return(new CountResultDto(count));
        }
예제 #2
0
        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);
        }