< Summary

Information
Class: Elsa.Persistence.EFCore.CommonPersistenceFeature
Assembly: Elsa.Persistence.EFCore.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Common/CommonPersistenceFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 17
Line coverage: 0%
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%210%
Apply()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore.Common/CommonPersistenceFeature.cs

#LineLine coverage
 1using Elsa.Persistence.EFCore.EntityHandlers;
 2using Elsa.Features.Abstractions;
 3using Elsa.Features.Services;
 4using Microsoft.Extensions.DependencyInjection;
 5
 6namespace Elsa.Persistence.EFCore;
 7
 8/// <inheritdoc />
 09public class CommonPersistenceFeature(IModule module) : FeatureBase(module)
 10{
 11    /// <inheritdoc />
 12    public override void Apply()
 13    {
 014        Services.AddScoped<IEntitySavingHandler, ApplyTenantId>();
 015        Services.AddScoped<IEntityModelCreatingHandler, SetTenantIdFilter>();
 016    }
 17}