< Summary

Information
Class: Elsa.ShellFeatures.ElsaFeature
Assembly: Elsa
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa/ShellFeatures/ElsaFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
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
ConfigureServices(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa/ShellFeatures/ElsaFeature.cs

#LineLine coverage
 1using CShells.Features;
 2using Elsa.Workflows.Management.ShellFeatures;
 3using Elsa.Workflows.Runtime.ShellFeatures;
 4using Microsoft.Extensions.DependencyInjection;
 5
 6namespace Elsa.ShellFeatures;
 7
 8[ShellFeature(
 9    DisplayName = "Elsa Core",
 10    Description = "Core Elsa workflow system functionality",
 11    DependsOn = [
 12    typeof(WorkflowManagementFeature),
 13    typeof(WorkflowRuntimeFeature)
 14])]
 15public class ElsaFeature : IShellFeature
 16{
 17    public void ConfigureServices(IServiceCollection services)
 18    {
 19        // Register the shell-based feature provider to bridge shell features to the Elsa feature API
 020        services.AddSingleton<Features.Contracts.IInstalledFeatureProvider, Features.Services.ShellInstalledFeatureProvi
 021    }
 22}