< Summary

Information
Class: Elsa.Workflows.Attributes.OutputAttribute
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Attributes/OutputAttribute.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 30
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
get_Name()100%11100%
get_DisplayName()100%11100%
get_Description()100%11100%
get_IsBrowsable()100%11100%
get_IsSerializable()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Attributes/OutputAttribute.cs

#LineLine coverage
 1namespace Elsa.Workflows.Attributes;
 2
 3[AttributeUsage(AttributeTargets.Property | AttributeTargets.Class)]
 4public class OutputAttribute : Attribute
 5{
 6    /// <summary>
 7    /// The technical name of the activity property.
 8    /// </summary>
 28019    public string? Name { get; set; }
 10
 11    /// <summary>
 12    /// The user-friendly name of the activity property.
 13    /// </summary>
 284514    public string? DisplayName { get; set; }
 15
 16    /// <summary>
 17    /// A brief description about this property for workflow tooling to use when displaying activity editors.
 18    /// </summary>
 385919    public string? Description { get; set; }
 20
 21    /// <summary>
 22    /// A value indicating whether this property should be visible.
 23    /// </summary>
 630124    public bool IsBrowsable { get; set; } = true;
 25
 26    /// <summary>
 27    /// A value indicating whether this output can be serialized as part of the workflow instance,
 28    /// </summary>
 730729    public bool IsSerializable { get; set; } = true;
 30}