< Summary

Information
Class: Elsa.Persistence.EFCore.Modules.Management.WorkflowManagementFeatureExtensions
Assembly: Elsa.Persistence.EFCore
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore/Modules/Management/Extensions.cs
Line coverage
33%
Covered lines: 2
Uncovered lines: 4
Coverable lines: 6
Total lines: 36
Line coverage: 33.3%
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
UseEntityFrameworkCore(...)100%210%
UseEntityFrameworkCore(...)100%210%
UseEntityFrameworkCore(...)100%11100%

File(s)

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

#LineLine coverage
 1using Elsa.Workflows.Management.Features;
 2
 3namespace Elsa.Persistence.EFCore.Modules.Management;
 4
 5/// <summary>
 6/// Provides extensions to various management related features.
 7/// </summary>
 8public static class WorkflowManagementFeatureExtensions
 9{
 10    /// <summary>
 11    /// Sets up the EF Core persistence provider.
 12    /// </summary>
 13    public static WorkflowDefinitionsFeature UseEntityFrameworkCore(this WorkflowDefinitionsFeature feature, Action<EFCo
 14    {
 015        feature.Module.Configure(configure);
 016        return feature;
 17    }
 18
 19    /// <summary>
 20    /// Sets up the EF Core persistence provider.
 21    /// </summary>
 22    public static WorkflowInstancesFeature UseEntityFrameworkCore(this WorkflowInstancesFeature feature, Action<EFCoreWo
 23    {
 024        feature.Module.Configure(configure);
 025        return feature;
 26    }
 27
 28    /// <summary>
 29    /// Sets up the EF Core persistence provider.
 30    /// </summary>
 31    public static WorkflowManagementFeature UseEntityFrameworkCore(this WorkflowManagementFeature feature, Action<Workfl
 32    {
 233        feature.Module.Configure(configure);
 234        return feature;
 35    }
 36}