< Summary

Information
Class: Elsa.Persistence.EFCore.Modules.Management.EFCoreWorkflowInstancePersistenceFeature
Assembly: Elsa.Persistence.EFCore
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore/Modules/Management/WorkflowInstancePersistenceFeature.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 28
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
Configure()100%11100%
Apply()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore/Modules/Management/WorkflowInstancePersistenceFeature.cs

#LineLine coverage
 1using Elsa.Features.Attributes;
 2using Elsa.Features.Services;
 3using Elsa.Workflows.Management.Entities;
 4using Elsa.Workflows.Management.Features;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace Elsa.Persistence.EFCore.Modules.Management;
 8
 9/// <summary>
 10/// Configures the <see cref="WorkflowInstancesFeature"/> feature with an Entity Framework Core persistence provider.
 11/// </summary>
 12[DependsOn(typeof(WorkflowManagementFeature))]
 13[DependsOn(typeof(WorkflowInstancesFeature))]
 114public class EFCoreWorkflowInstancePersistenceFeature(IModule module) : PersistenceFeatureBase<EFCoreWorkflowInstancePer
 15{
 16    /// <inheritdoc />
 17    public override void Configure()
 18    {
 32419        Module.Configure<WorkflowInstancesFeature>(feature => feature.WorkflowInstanceStore = sp => sp.GetRequiredServic
 120    }
 21
 22    /// <inheritdoc />
 23    public override void Apply()
 24    {
 125        base.Apply();
 126        AddEntityStore<WorkflowInstance, EFCoreWorkflowInstanceStore>();
 127    }
 28}