This commit is contained in:
2022-05-22 09:21:44 +03:00
parent e66733b46a
commit 1942bcfe84
10 changed files with 194 additions and 75 deletions

View File

@@ -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)