< 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: 24
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 Elsa.ShellFeatures;
 5using Elsa.Platform.PackageManifest.Generator.Hints;
 6using JetBrains.Annotations;
 7using Microsoft.Extensions.DependencyInjection;
 8
 9namespace Elsa.Dashboard.Api.ShellFeatures;
 10
 11[ManifestFeatureCategory("Dashboard")]
 12[ManifestFeatureCategory("API")]
 13[ShellFeature(
 14    DisplayName = "Dashboard API",
 15    Description = "Provides operational dashboard API endpoints for Elsa Studio",
 16    DependsOn = [typeof(ElsaFastEndpointsFeature)])]
 17[UsedImplicitly]
 18public class DashboardApiFeature : IFastEndpointsShellFeature
 19{
 20    public void ConfigureServices(IServiceCollection services)
 21    {
 022        services.AddDashboardApiServices();
 023    }
 24}