< 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))]
 713public class EFCoreAlterationsPersistenceFeature(IModule module) : PersistenceFeatureBase<EFCoreAlterationsPersistenceFe
 14{
 15    /// <inheritdoc />
 16    public override void Configure()
 17    {
 718        Module.Configure<AlterationsFeature>(feature =>
 719        {
 43720            feature.AlterationPlanStoreFactory = sp => sp.GetRequiredService<EFCoreAlterationPlanStore>();
 43721            feature.AlterationJobStoreFactory = sp => sp.GetRequiredService<EFCoreAlterationJobStore>();
 1422        });
 723    }
 24
 25    /// <inheritdoc />
 26    public override void Apply()
 27    {
 728        base.Apply();
 729        AddEntityStore<AlterationPlan, EFCoreAlterationPlanStore>();
 730        AddEntityStore<AlterationJob, EFCoreAlterationJobStore>();
 731    }
 32}