Fix tests

This commit is contained in:
Sipke Schoorstra 2022-12-07 21:05:24 +01:00
parent 92ffeed4ea
commit 272d6f03a7
5 changed files with 20 additions and 15 deletions

View file

@ -19,7 +19,6 @@ public class EFCoreWorkflowStateStore : IWorkflowStateStore
public EFCoreWorkflowStateStore(
IDbContextFactory<RuntimeElsaDbContext> dbContextFactory,
Store<RuntimeElsaDbContext, WorkflowState> store,
SerializerOptionsProvider serializerOptionsProvider,
ISystemClock systemClock)
{

View file

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

View file

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

View file

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

View file

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