//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setUpRuntimeData() public virtual void setUpRuntimeData() { mockQuery = mock(typeof(HistoricJobLogQuery)); HistoricJobLog mockedHistoricJobLog = MockProvider.createMockHistoricJobLog(); when(mockQuery.singleResult()).thenReturn(mockedHistoricJobLog); when(mockQuery.logId(MockProvider.EXAMPLE_HISTORIC_JOB_LOG_ID)).thenReturn(mockQuery); mockHistoryService = mock(typeof(HistoryService)); when(mockHistoryService.createHistoricJobLogQuery()).thenReturn(mockQuery); namedProcessEngine = getProcessEngine(MockProvider.EXAMPLE_PROCESS_ENGINE_NAME); when(namedProcessEngine.HistoryService).thenReturn(mockHistoryService); }