< Summary

Information
Class: Elsa.Expressions.Features.ExpressionsFeature
Assembly: Elsa.Expressions
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions/Features/ExpressionsFeature.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 26
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
.ctor(...)100%11100%
Apply()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions/Features/ExpressionsFeature.cs

#LineLine coverage
 1using Elsa.Expressions.Contracts;
 2using Elsa.Expressions.Services;
 3using Elsa.Features.Abstractions;
 4using Elsa.Features.Services;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace Elsa.Expressions.Features;
 8
 9/// <summary>
 10/// Installs and configures the expressions feature.
 11/// </summary>
 12public class ExpressionsFeature : FeatureBase
 13{
 14    /// <inheritdoc />
 115    public ExpressionsFeature(IModule module) : base(module)
 16    {
 117    }
 18
 19    /// <inheritdoc />
 20    public override void Apply()
 21    {
 122        Services
 123            .AddScoped<IExpressionEvaluator, ExpressionEvaluator>()
 124            .AddSingleton<IWellKnownTypeRegistry, WellKnownTypeRegistry>();
 125    }
 26}