< Summary

Information
Class: Elsa.Features.Attributes.DependencyOfAttribute
Assembly: Elsa.Features
File(s): /home/runner/work/elsa-core/elsa-core/src/common/Elsa.Features/Attributes/DependencyOf.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 19
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%
get_Type()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/common/Elsa.Features/Attributes/DependencyOf.cs

#LineLine coverage
 1namespace Elsa.Features.Attributes;
 2
 3/// <summary>
 4/// Specifies that the feature is enabled automatically when the specified feature is enabled.
 5/// </summary>
 6[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
 7public class DependencyOfAttribute : Attribute
 8{
 9    /// <inheritdoc />
 210    public DependencyOfAttribute(Type type)
 11    {
 212        Type = type;
 213    }
 14
 15    /// <summary>
 16    /// The type of the feature this feature is a dependency of.
 17    /// </summary>
 418    public Type Type { get; set; }
 19}

Methods/Properties

.ctor(System.Type)
get_Type()