//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void init() public virtual void init() { mockedQuery = Mockito.mock(typeof(SchemaLogQuery)); mockedSchemaLogEntries = createMockedSchemaLogEntries(); when(mockedQuery.list()).thenReturn(mockedSchemaLogEntries); when(processEngine.ManagementService.createSchemaLogQuery()).thenReturn(mockedQuery); }
public virtual long?findSchemaLogEntryCountByQueryCriteria(SchemaLogQuery schemaLogQuery) { if (Authorized) { return((long?)DbEntityManager.selectOne("selectSchemaLogEntryCountByQueryCriteria", schemaLogQuery)); } else { return(0L); } }
protected internal virtual IList <SchemaLogEntry> executePaginatedQuery(SchemaLogQuery query, int?firstResult, int?maxResults) { if (firstResult == null) { firstResult = 0; } if (maxResults == null) { maxResults = int.MaxValue; } return(query.listPage(firstResult, maxResults)); }
public virtual IList <SchemaLogEntryDto> querySchemaLog(SchemaLogQueryDto dto, int?firstResult, int?maxResults) { SchemaLogQuery query = dto.toQuery(processEngine); IList <SchemaLogEntry> schemaLogEntries; if (firstResult != null || maxResults != null) { schemaLogEntries = executePaginatedQuery(query, firstResult, maxResults); } else { schemaLogEntries = query.list(); } return(SchemaLogEntryDto.fromSchemaLogEntries(schemaLogEntries)); }