mirror of
https://github.com/ditkrg/DIT.Workflower.git
synced 2026-01-25 15:22:56 +00:00
WIP
This commit is contained in:
@@ -18,9 +18,7 @@ public class DependencyInjectionTests
|
||||
|
||||
var sc = new ServiceCollection();
|
||||
|
||||
sc.AddWorkflowDefinition<PhoneState, PhoneCommand, PhoneCall>(version: 1)
|
||||
|
||||
.From(PhoneState.Idle)
|
||||
sc.AddWorkflowDefinition<PhoneState, PhoneCommand, PhoneCall>(initial: PhoneState.Idle, version: 1)
|
||||
.On(PhoneCommand.IncomingCall)
|
||||
.To(PhoneState.Ringing)
|
||||
|
||||
@@ -29,9 +27,7 @@ public class DependencyInjectionTests
|
||||
.To(PhoneState.Connected)
|
||||
;
|
||||
|
||||
sc.AddWorkflowDefinition<PhoneState, PhoneCommand, PhoneCall>(version: 2)
|
||||
|
||||
.From(PhoneState.Idle)
|
||||
sc.AddWorkflowDefinition<PhoneState, PhoneCommand, PhoneCall>(initial: PhoneState.Idle, version: 2)
|
||||
.On(PhoneCommand.IncomingCall)
|
||||
.To(PhoneState.Ringing)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user