< Summary

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

#LineLine coverage
 1using CShells.FastEndpoints.Features;
 2using CShells.Features;
 3using Elsa.ShellFeatures;
 4using Elsa.Platform.PackageManifest.Generator.Hints;
 5using JetBrains.Annotations;
 6using Microsoft.Extensions.DependencyInjection;
 7
 8namespace Elsa.Shells.Api.ShellFeatures;
 9
 10/// <summary>
 11/// Adds shells API features with FastEndpoints support.
 12/// </summary>
 13/// <remarks>
 14/// This feature implements <see cref="IFastEndpointsShellFeature"/> to indicate that this assembly
 15/// contains FastEndpoints that should be automatically discovered and registered.
 16/// </remarks>
 17[ManifestFeatureCategory("Shells")]
 18[ManifestFeatureCategory("API")]
 19[ShellFeature(
 20    DisplayName = "Shells API",
 21    Description = "Provides REST API endpoints for shell management",
 22    DependsOn = [typeof(ElsaFastEndpointsFeature)])]
 23[UsedImplicitly]
 24public class ShellsApiFeature : IFastEndpointsShellFeature
 25{
 26    public void ConfigureServices(IServiceCollection services)
 27    {
 028    }
 29}