< Summary

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

#LineLine coverage
 1using CShells.Features;
 2using Microsoft.Extensions.DependencyInjection;
 3
 4namespace Elsa.Common.ShellFeatures;
 5
 6/// <summary>
 7/// Adds and configures the Mediator feature.
 8/// </summary>
 9[ShellFeature("Mediator")]
 10public class MediatorFeature : IShellFeature
 11{
 12    public void ConfigureServices(IServiceCollection services)
 13    {
 014        services
 015            .AddMediator()
 016            .AddMediatorHostedServices();
 017    }
 18}