//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(HistoricExternalTaskLogQuery)); HistoricExternalTaskLog mockedHistoricExternalTaskLog = MockProvider.createMockHistoricExternalTaskLog(); when(mockQuery.singleResult()).thenReturn(mockedHistoricExternalTaskLog); when(mockQuery.logId(MockProvider.EXAMPLE_HISTORIC_EXTERNAL_TASK_LOG_ID)).thenReturn(mockQuery); mockHistoryService = mock(typeof(HistoryService)); when(mockHistoryService.createHistoricExternalTaskLogQuery()).thenReturn(mockQuery); namedProcessEngine = getProcessEngine(MockProvider.EXAMPLE_PROCESS_ENGINE_NAME); when(namedProcessEngine.HistoryService).thenReturn(mockHistoryService); }