< Summary

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

#LineLine coverage
 1using CShells.Features;
 2using Elsa.Dsl.ElsaScript.Compiler;
 3using Elsa.Dsl.ElsaScript.Contracts;
 4using Elsa.Dsl.ElsaScript.Materializers;
 5using Elsa.Dsl.ElsaScript.Parser;
 6using Elsa.Workflows.Management;
 7using Elsa.Platform.PackageManifest.Generator.Hints;
 8using JetBrains.Annotations;
 9using Microsoft.Extensions.DependencyInjection;
 10
 11namespace Elsa.Dsl.ElsaScript.ShellFeatures;
 12
 13/// <summary>
 14/// Feature for ElsaScript DSL support.
 15/// </summary>
 16[ManifestFeatureCategory("Scripting")]
 17[ManifestFeatureCategory("Workflows")]
 18[ShellFeature(
 19    DisplayName = "ElsaScript DSL",
 20    Description = "Provides ElsaScript DSL support for defining workflows")]
 21[UsedImplicitly]
 22public class ElsaScriptFeature : IShellFeature
 23{
 24    public void ConfigureServices(IServiceCollection services)
 25    {
 026        services.AddSingleton<IElsaScriptParser, ElsaScriptParser>();
 027        services.AddScoped<IElsaScriptCompiler, ElsaScriptCompiler>();
 028        services.AddScoped<IWorkflowMaterializer, ElsaScriptWorkflowMaterializer>();
 029    }
 30}
 31