< Summary

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

#LineLine coverage
 1using CShells.FastEndpoints.Features;
 2using CShells.Features;
 3using Elsa.Dashboard.Api.Extensions;
 4using JetBrains.Annotations;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace Elsa.Dashboard.Api.ShellFeatures;
 8
 9[ShellFeature(
 10    DisplayName = "Dashboard API",
 11    Description = "Provides operational dashboard API endpoints for Elsa Studio",
 12    DependsOn = ["ElsaFastEndpoints", "WorkflowInstances", "WorkflowRuntime"])]
 13[UsedImplicitly]
 14public class DashboardApiFeature : IFastEndpointsShellFeature
 15{
 16    public void ConfigureServices(IServiceCollection services)
 17    {
 018        services.AddDashboardApiServices();
 019    }
 20}