< Summary

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

#LineLine coverage
 1using CShells.Features;
 2using Elsa.Workflows.Management.Stores;
 3using Elsa.Platform.PackageManifest.Generator.Hints;
 4using JetBrains.Annotations;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace Elsa.Workflows.Management.ShellFeatures;
 8
 9/// <summary>
 10/// Configures workflow definition storage.
 11/// </summary>
 12[ManifestFeatureCategory("Workflows")]
 13[ShellFeature(
 14    DisplayName = "Workflow Definitions",
 15    Description = "Manages workflow definitions and their storage")]
 16[UsedImplicitly]
 17public class WorkflowDefinitionsFeature : IShellFeature
 18{
 19    public void ConfigureServices(IServiceCollection services)
 20    {
 021        services.AddScoped<IWorkflowDefinitionStore, MemoryWorkflowDefinitionStore>();
 022    }
 23}