< Summary

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

#LineLine coverage
 1namespace Elsa.Features.Attributes;
 2
 3/// <summary>
 4/// Specifies that the feature depends on another feature.
 5/// </summary>
 6[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
 7public class DependsOnAttribute : Attribute
 8{
 9    /// <summary>
 10    /// Initializes a new instance of the <see cref="DependsOnAttribute"/> class.
 11    /// </summary>
 12    /// <param name="type">The type of the feature this feature depends on.</param>
 44913    public DependsOnAttribute(Type type)
 14    {
 44915        Type = type;
 44916    }
 17
 18    /// <summary>
 19    /// The type of the feature this feature depends on.
 20    /// </summary>
 89821    public Type Type { get; set; }
 22}

Methods/Properties

.ctor(System.Type)
get_Type()