//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() { runtimeServiceMock = mock(typeof(RuntimeServiceImpl)); when(runtimeServiceMock.getVariableTyped(eq(EXAMPLE_PROCESS_INSTANCE_ID), eq(EXAMPLE_VARIABLE_KEY), eq(true))).thenReturn(Variables.dateValue(testDate)); when(processEngine.RuntimeService).thenReturn(runtimeServiceMock); }
private IncidentQuery setupMockIncidentQuery(IList <Incident> incidents) { IncidentQuery sampleQuery = mock(typeof(IncidentQuery)); when(sampleQuery.incidentId(anyString())).thenReturn(sampleQuery); when(sampleQuery.singleResult()).thenReturn(mock(typeof(Incident))); mockRuntimeService = mock(typeof(RuntimeServiceImpl)); when(processEngine.RuntimeService).thenReturn(mockRuntimeService); when(mockRuntimeService.createIncidentQuery()).thenReturn(sampleQuery); return(sampleQuery); }
public ProcessInstanceBuilderImpl(RuntimeServiceImpl runtimeService) { this.runtimeService = runtimeService; }
protected internal override void updateVariableEntities(VariableMap modifications, IList <string> deletions) { RuntimeServiceImpl runtimeService = (RuntimeServiceImpl)engine.RuntimeService; runtimeService.updateVariables(resourceId, modifications, deletions); }