< Summary

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

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/ShellFeatures/CommitStrategiesFeature.cs

#LineLine coverage
 1using CShells.Features;
 2using Elsa.Extensions;
 3using Elsa.Workflows.CommitStates;
 4using Elsa.Workflows.CommitStates.Tasks;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace Elsa.Workflows.ShellFeatures;
 8
 9[ShellFeature("CommitStrategies")]
 10public class CommitStrategiesFeature : IShellFeature
 11{
 12    public void ConfigureServices(IServiceCollection services)
 13    {
 014        services.AddSingleton<ICommitStrategyRegistry, DefaultCommitStrategyRegistry>();
 015        services.AddStartupTask<PopulateCommitStrategyRegistry>();
 016    }
 17}