< Summary

Information
Class: Elsa.Api.Client.Resources.ActivityDescriptors.Models.PropertyDescriptor
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/ActivityDescriptors/Models/PropertyDescriptor.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 47
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
get_Name()100%210%
get_TypeName()100%210%
get_DisplayName()100%210%
get_Description()100%210%
get_Order()100%210%
get_IsBrowsable()100%210%
get_IsSynthetic()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/ActivityDescriptors/Models/PropertyDescriptor.cs

#LineLine coverage
 1using System.Text.Json.Serialization;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Api.Client.Resources.ActivityDescriptors.Models;
 5
 6/// <summary>
 7/// A base type for <see cref="InputDescriptor"/> and <see cref="OutputDescriptor"/>.
 8/// </summary>
 9[PublicAPI]
 10public abstract class PropertyDescriptor
 11{
 12    /// <summary>
 13    /// The name.
 14    /// </summary>
 015    public string Name { get; set; } = default!;
 16
 17    /// <summary>
 18    /// The .NET type.
 19    /// </summary>
 20    [JsonPropertyName("typeName")]
 021    public string TypeName { get; set; } = default!;
 22
 23    /// <summary>
 24    /// The user friendly name of the input. Used by UI tools.
 25    /// </summary>
 026    public string? DisplayName { get; set; }
 27
 28    /// <summary>
 29    /// The user friendly description of the input. Used by UI tools.
 30    /// </summary>
 031    public string? Description { get; set; }
 32
 33    /// <summary>
 34    /// The order in which this input should be displayed by UI tools.
 35    /// </summary>
 036    public float Order { get; set; }
 37
 38    /// <summary>
 39    /// True if this input should be displayed by UI tools, false otherwise.
 40    /// </summary>
 041    public bool? IsBrowsable { get; set; }
 42
 43    /// <summary>
 44    /// True if this input property is synthetic, which means it does not exist physically on the activity's .NET type.
 45    /// </summary>
 046    public bool IsSynthetic { get; set; }
 47}