//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void sendSignalToStartEventNoAuthenticatedTenants() public virtual void sendSignalToStartEventNoAuthenticatedTenants() { testRule.deploy(SIGNAL_START_PROCESS); testRule.deployForTenant(TENANT_ONE, SIGNAL_START_PROCESS); engineRule.IdentityService.setAuthentication("user", null, null); engineRule.RuntimeService.createSignalEvent("signal").send(); engineRule.IdentityService.clearAuthentication(); ProcessInstanceQuery query = engineRule.RuntimeService.createProcessInstanceQuery(); assertThat(query.count(), @is(1L)); assertThat(query.withoutTenantId().count(), @is(1L)); assertThat(query.tenantIdIn(TENANT_ONE).count(), @is(0L)); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void correlateMessageToStartEventNoAuthenticatedTenants() public virtual void correlateMessageToStartEventNoAuthenticatedTenants() { testRule.deployForTenant(TENANT_ONE, MESSAGE_START_PROCESS); testRule.deployForTenant(TENANT_TWO, MESSAGE_START_PROCESS); testRule.deploy(MESSAGE_START_PROCESS); engineRule.IdentityService.setAuthentication("user", null, null); engineRule.RuntimeService.createMessageCorrelation("message").correlateStartMessage(); engineRule.IdentityService.clearAuthentication(); ProcessInstanceQuery query = engineRule.RuntimeService.createProcessInstanceQuery(); assertThat(query.count(), @is(1L)); assertThat(query.withoutTenantId().count(), @is(1L)); }