< Summary

Information
Class: Elsa.Persistence.EFCore.Modules.Alterations.EFCoreAlterationsPersistenceFeature
Assembly: Elsa.Persistence.EFCore
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore/Modules/Alterations/Feature.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 32
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/Alterations/Feature.cs

#LineLine coverage
 1using Elsa.Alterations.Core.Entities;
 2using Elsa.Alterations.Features;
 3using Elsa.Features.Attributes;
 4using Elsa.Features.Services;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace Elsa.Persistence.EFCore.Modules.Alterations;
 8
 9/// <summary>
 10/// Configures the default workflow runtime to use EF Core persistence providers.
 11/// </summary>
 12[DependsOn(typeof(AlterationsFeature))]
 113public class EFCoreAlterationsPersistenceFeature(IModule module) : PersistenceFeatureBase<EFCoreAlterationsPersistenceFe
 14{
 15    /// <inheritdoc />
 16    public override void Configure()
 17    {
 118        Module.Configure<AlterationsFeature>(feature =>
 119        {
 32120            feature.AlterationPlanStoreFactory = sp => sp.GetRequiredService<EFCoreAlterationPlanStore>();
 32121            feature.AlterationJobStoreFactory = sp => sp.GetRequiredService<EFCoreAlterationJobStore>();
 222        });
 123    }
 24
 25    /// <inheritdoc />
 26    public override void Apply()
 27    {
 128        base.Apply();
 129        AddEntityStore<AlterationPlan, EFCoreAlterationPlanStore>();
 130        AddEntityStore<AlterationJob, EFCoreAlterationJobStore>();
 131    }
 32}