Fix tests
This commit is contained in:
parent
92ffeed4ea
commit
272d6f03a7
|
|
@ -19,7 +19,6 @@ public class EFCoreWorkflowStateStore : IWorkflowStateStore
|
|||
|
||||
public EFCoreWorkflowStateStore(
|
||||
IDbContextFactory<RuntimeElsaDbContext> dbContextFactory,
|
||||
Store<RuntimeElsaDbContext, WorkflowState> store,
|
||||
SerializerOptionsProvider serializerOptionsProvider,
|
||||
ISystemClock systemClock)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ public class Event : Trigger<object?>
|
|||
{
|
||||
/// <inheritdoc />
|
||||
[JsonConstructor]
|
||||
public Event([CallerFilePath] string? source = default, [CallerLineNumber] int? line = default) : base(source, line)
|
||||
internal Event([CallerFilePath] string? source = default, [CallerLineNumber] int? line = default) : base(source, line)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using Elsa.Workflows.Core.Services;
|
|||
|
||||
namespace Elsa.Workflows.Core.Activities.Flowchart.Models;
|
||||
|
||||
public class FlowScope
|
||||
internal class FlowScope
|
||||
{
|
||||
[JsonConstructor]
|
||||
public FlowScope()
|
||||
|
|
|
|||
|
|
@ -15,12 +15,12 @@ namespace Elsa.Workflows.Core.Activities;
|
|||
public class WriteLine : Activity
|
||||
{
|
||||
/// <inheritdoc />
|
||||
private WriteLine([CallerFilePath] string? source = default, [CallerLineNumber] int? line = default) : base(source, line)
|
||||
internal WriteLine([CallerFilePath] string? source = default, [CallerLineNumber] int? line = default) : base(source, line)
|
||||
{
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public WriteLine(string text, [CallerFilePath] string? source = default, [CallerLineNumber] int? line = default) : this(new Literal<string>(text), source, line)
|
||||
public WriteLine(string text = default!, [CallerFilePath] string? source = default, [CallerLineNumber] int? line = default) : this(new Literal<string>(text), source, line)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,16 +22,22 @@ public class ComplexIfWorkflow : WorkflowBase
|
|||
new WriteLine("Start"),
|
||||
new If(_condition)
|
||||
{
|
||||
Then = new Sequence(
|
||||
|
||||
new WriteLine("Executing"),
|
||||
new WriteLine("True!")
|
||||
),
|
||||
Else = new Sequence(
|
||||
|
||||
new WriteLine("Executing"),
|
||||
new WriteLine("False!")
|
||||
)
|
||||
Then = new Sequence
|
||||
{
|
||||
Activities =
|
||||
{
|
||||
new WriteLine("Executing"),
|
||||
new WriteLine("True!")
|
||||
}
|
||||
},
|
||||
Else = new Sequence
|
||||
{
|
||||
Activities =
|
||||
{
|
||||
new WriteLine("Executing"),
|
||||
new WriteLine("False!")
|
||||
}
|
||||
}
|
||||
},
|
||||
new WriteLine("End")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue