< Summary

Information
Class: Elsa.Workflows.Runtime.Dashboard.Extensions.ServiceCollectionExtensions
Assembly: Elsa.Workflows.Runtime.Dashboard
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime.Dashboard/Extensions/ServiceCollectionExtensions.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 13
Line coverage: 100%
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
AddWorkflowRuntimeDashboard(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime.Dashboard/Extensions/ServiceCollectionExtensions.cs

#LineLine coverage
 1using Elsa.Dashboard.Abstractions.Extensions;
 2using Elsa.Workflows.Runtime.Dashboard;
 3using Microsoft.Extensions.DependencyInjection;
 4
 5namespace Elsa.Workflows.Runtime.Dashboard.Extensions;
 6
 7public static class ServiceCollectionExtensions
 8{
 9    public static IServiceCollection AddWorkflowRuntimeDashboard(this IServiceCollection services)
 10    {
 311        return services.AddDashboardContributor<WorkflowDashboardContributor>();
 12    }
 13}