//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() { historyServiceMock = mock(typeof(HistoryService)); // runtime service when(processEngine.HistoryService).thenReturn(historyServiceMock); historicInstanceMock = MockProvider.createMockHistoricCaseInstance(); historicQueryMock = mock(typeof(HistoricCaseInstanceQuery)); when(historyServiceMock.createHistoricCaseInstanceQuery()).thenReturn(historicQueryMock); when(historicQueryMock.caseInstanceId(anyString())).thenReturn(historicQueryMock); when(historicQueryMock.singleResult()).thenReturn(historicInstanceMock); }