@@ -50,7 +50,7 @@ public async Task When_Execute_Sequence_Of_Empty_Tasks()
5050 [ Fact ]
5151 public async Task When_Execute_StartEvent_With_MessageEventDefinition ( )
5252 {
53- const string messageName = "alert " ;
53+ const string messageName = "message " ;
5454 var processInstance = ProcessInstanceBuilder . New ( "processFile" )
5555 . AddMessage ( messageName , "message" , string . Empty )
5656 . AddStartEvent ( "1" , "evt" , _ =>
@@ -70,9 +70,8 @@ public async Task When_Execute_StartEvent_With_MessageEventDefinition()
7070 await jobServer . RegisterProcessInstance ( processInstance , CancellationToken . None ) ;
7171 await jobServer . EnqueueProcessInstance ( processInstance . AggregateId , true , CancellationToken . None ) ;
7272 var casePlanInstance = await jobServer . Get ( processInstance . AggregateId , CancellationToken . None ) ;
73- await jobServer . EnqueueMessage ( processInstance . AggregateId , "message" , null , CancellationToken . None ) ;
74- casePlanInstance = await jobServer . Get ( processInstance . AggregateId , CancellationToken . None ) ;
75- await jobServer . EnqueueMessage ( processInstance . AggregateId , "message" , null , CancellationToken . None ) ;
73+ await jobServer . EnqueueMessage ( processInstance . AggregateId , messageName , null , CancellationToken . None ) ;
74+ await jobServer . EnqueueMessage ( processInstance . AggregateId , messageName , null , CancellationToken . None ) ;
7675 casePlanInstance = await jobServer . Get ( processInstance . AggregateId , CancellationToken . None ) ;
7776 var startEventInstance = casePlanInstance . ElementInstances . First ( _ => _ . FlowNodeId == "1" ) ;
7877 var emptyTaskInstance = casePlanInstance . ElementInstances . First ( _ => _ . FlowNodeId == "2" ) ;
@@ -298,7 +297,7 @@ public async Task When_Execute_UserTask()
298297 . Setup ( x => x . SendAsync ( It . IsAny < HttpRequestMessage > ( ) , It . IsAny < CancellationToken > ( ) ) )
299298 . ReturnsAsync ( new HttpResponseMessage
300299 {
301- Content = new StringContent ( "{ 'id' : '{ " + humanTaskInstanceId + "} ' }" )
300+ Content = new StringContent ( "{ 'id' : '" + humanTaskInstanceId + "', 'defId': 'defId ' }" )
302301 } ) ;
303302 await jobServer . RegisterProcessInstance ( processInstance , CancellationToken . None ) ;
304303 await jobServer . EnqueueProcessInstance ( processInstance . AggregateId , true , CancellationToken . None ) ;
@@ -342,7 +341,7 @@ public async Task When_Execute_BoundaryEvent()
342341 . Setup ( x => x . SendAsync ( It . IsAny < HttpRequestMessage > ( ) , It . IsAny < CancellationToken > ( ) ) )
343342 . ReturnsAsync ( new HttpResponseMessage
344343 {
345- Content = new StringContent ( "{ 'id' : '{ " + humanTaskInstanceId + "} ' }" )
344+ Content = new StringContent ( "{ 'id' : '" + humanTaskInstanceId + "', 'defId': 'defId ' }" )
346345 } ) ;
347346
348347 await jobServer . RegisterProcessInstance ( processInstance , CancellationToken . None ) ;
@@ -359,8 +358,8 @@ public async Task When_Execute_BoundaryEvent()
359358 Assert . Equal ( 1 , executionPath . Pointers . First ( p => p . FlowNodeId == "1" ) . Outgoing . Count ( ) ) ;
360359 Assert . Equal ( 1 , executionPath . Pointers . First ( p => p . FlowNodeId == "2" ) . Incoming . Count ( ) ) ;
361360 Assert . Equal ( 1 , executionPath . Pointers . First ( p => p . FlowNodeId == "2" ) . Outgoing . Count ( ) ) ;
362- Assert . Equal ( 3 , executionPath . Pointers . First ( p => p . FlowNodeId == "3" ) . Incoming . Count ( ) ) ;
363- Assert . Equal ( 3 , executionPath . Pointers . First ( p => p . FlowNodeId == "4" ) . Incoming . Count ( ) ) ;
361+ Assert . Equal ( 2 , executionPath . Pointers . First ( p => p . FlowNodeId == "3" ) . Incoming . Count ( ) ) ;
362+ Assert . Equal ( 2 , executionPath . Pointers . First ( p => p . FlowNodeId == "4" ) . Incoming . Count ( ) ) ;
364363 }
365364
366365 [ Fact ]
@@ -398,7 +397,7 @@ public async Task When_Execute_HumanTaskWithBoundaryEvent()
398397 . Setup ( x => x . SendAsync ( It . IsAny < HttpRequestMessage > ( ) , It . IsAny < CancellationToken > ( ) ) )
399398 . ReturnsAsync ( new HttpResponseMessage
400399 {
401- Content = new StringContent ( "{ 'id' : '{ " + humanTaskInstanceId + "} ' }" )
400+ Content = new StringContent ( "{ 'id' : '" + humanTaskInstanceId + "', 'defId': 'defId ' }" )
402401 } ) ;
403402 await jobServer . RegisterProcessInstance ( processInstance , CancellationToken . None ) ;
404403 await jobServer . EnqueueProcessInstance ( processInstance . AggregateId , true , CancellationToken . None ) ;
0 commit comments