< Summary

Information
Class: Elsa.Persistence.EFCore.Modules.Labels.EFCoreLabelPersistenceShellFeatureBase
Assembly: Elsa.Persistence.EFCore
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore/Modules/Labels/ShellFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 22
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
OnConfiguring(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Persistence.EFCore/Modules/Labels/ShellFeature.cs

#LineLine coverage
 1using Elsa.Labels.Contracts;
 2using Elsa.Labels.Entities;
 3using JetBrains.Annotations;
 4using Microsoft.Extensions.DependencyInjection;
 5
 6namespace Elsa.Persistence.EFCore.Modules.Labels;
 7
 8/// <summary>
 9/// Base class for label persistence features.
 10/// This is not a standalone shell feature - use provider-specific features.
 11/// </summary>
 12[UsedImplicitly]
 13public abstract class EFCoreLabelPersistenceShellFeatureBase : PersistenceShellFeatureBase<LabelsElsaDbContext>
 14{
 15    protected override void OnConfiguring(IServiceCollection services)
 16    {
 017        services.AddScoped<ILabelStore, EFCoreLabelStore>();
 018        services.AddScoped<IWorkflowDefinitionLabelStore, EFCoreWorkflowDefinitionLabelStore>();
 019        AddEntityStore<Label, EFCoreLabelStore>(services);
 020        AddEntityStore<WorkflowDefinitionLabel, EFCoreWorkflowDefinitionLabelStore>(services);
 021    }
 22}