< Summary

Information
Class: Elsa.Workflows.Management.WorkflowManagementFeatureExtensions
Assembly: Elsa.Workflows.Management
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Extensions/WorkflowManagementFeatureExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 21
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
AddVariableTypeAndAlias(...)100%210%
AddVariableTypeAndAlias(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Extensions/WorkflowManagementFeatureExtensions.cs

#LineLine coverage
 1using Elsa.Extensions;
 2using Elsa.Workflows.Management.Features;
 3using JetBrains.Annotations;
 4
 5namespace Elsa.Workflows.Management;
 6
 7[PublicAPI]
 8public static class WorkflowManagementFeatureExtensions
 9{
 10    public static WorkflowManagementFeature AddVariableTypeAndAlias<T>(this WorkflowManagementFeature management, string
 11    {
 012        return management.AddVariableTypeAndAlias<T>(typeof(T).Name, category);
 13    }
 14
 15    public static WorkflowManagementFeature AddVariableTypeAndAlias<T>(this WorkflowManagementFeature management, string
 16    {
 017        management.AddVariableType<T>(category);
 018        management.Module.AddTypeAlias<T>(alias);
 019        return management;
 20    }
 21}