public virtual void dontSetAuthenticatedTenantForJobWithoutTenant()
        {
//JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.GetName method:
            testRule.Deploy(ESS.FW.Bpm.Model.Bpmn.Bpmn.CreateExecutableProcess("process").StartEvent().ServiceTask().CamundaAsyncBefore().Func(m => m.CamundaClass = (typeof(AssertingJavaDelegate).FullName)).EndEvent().Done());

            IProcessInstance processInstance = engineRule.RuntimeService.StartProcessInstanceByKey("process");

            AssertingJavaDelegate.AddAsserts(hasNoAuthenticatedTenantId());

            testRule.WaitForJobExecutorToProcessAllJobs();
            testRule.AssertProcessEnded(processInstance.Id);
        }
        public virtual void setAuthenticatedTenantForTimerStartEvent()
        {
//JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.GetName method:
            testRule.DeployForTenant(TENANT_ID, ESS.FW.Bpm.Model.Bpmn.Bpmn.CreateExecutableProcess("process").StartEvent().TimerWithDuration("PT1M").ServiceTask().CamundaClass(typeof(AssertingJavaDelegate).FullName).UserTask().EndEvent().Done());

            AssertingJavaDelegate.AddAsserts(hasAuthenticatedTenantId(TENANT_ID));

            ClockUtil.CurrentTime = tomorrow();
            testRule.WaitForJobExecutorToProcessAllJobs();

            Assert.That(engineRule.TaskService.CreateTaskQuery().Count(), Is.EqualTo(1L));
        }
        public virtual void setAuthenticatedTenantForIntermediateTimerEvent()
        {
//JAVA TO C# CONVERTER WARNING: The .NET Type.FullName property will not always yield results identical to the Java Class.GetName method:
            testRule.DeployForTenant(TENANT_ID, ESS.FW.Bpm.Model.Bpmn.Bpmn.CreateExecutableProcess("process").StartEvent().IntermediateCatchEvent().TimerWithDuration("PT1M").ServiceTask().CamundaClass(typeof(AssertingJavaDelegate).FullName).EndEvent().Done());

            IProcessInstance processInstance = engineRule.RuntimeService.StartProcessInstanceByKey("process");

            AssertingJavaDelegate.AddAsserts(hasAuthenticatedTenantId(TENANT_ID));

            ClockUtil.CurrentTime = tomorrow();
            testRule.WaitForJobExecutorToProcessAllJobs();
            testRule.AssertProcessEnded(processInstance.Id);
        }
 public virtual void tearDown()
 {
     AssertingJavaDelegate.Clear();
 }