//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.createMockHistoricActivityInstance(); historicQueryMock = mock(typeof(HistoricActivityInstanceQuery)); when(historyServiceMock.createHistoricActivityInstanceQuery()).thenReturn(historicQueryMock); when(historicQueryMock.activityInstanceId(anyString())).thenReturn(historicQueryMock); when(historicQueryMock.singleResult()).thenReturn(historicInstanceMock); }