< Summary

Information
Class: Elsa.Api.Client.Resources.ActivityDescriptors.Models.InputDescriptor
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/ActivityDescriptors/Models/InputDescriptor.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 56
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
.ctor()100%210%
get_IsWrapped()100%210%
get_UIHint()100%210%
get_Category()100%210%
get_DefaultValue()100%210%
get_DefaultSyntax()100%210%
get_IsReadOnly()100%210%
get_StorageDriverType()100%210%
get_UISpecifications()100%210%

File(s)

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

#LineLine coverage
 1using JetBrains.Annotations;
 2
 3namespace Elsa.Api.Client.Resources.ActivityDescriptors.Models;
 4
 5/// <summary>
 6/// A descriptor of an activity's input property.
 7/// </summary>
 8[PublicAPI]
 9public class InputDescriptor : PropertyDescriptor
 10{
 11    /// <inheritdoc />
 012    public InputDescriptor()
 13    {
 014    }
 15
 16    /// <summary>
 17    /// True if the property is wrapped with an <c>"Input{T}"</c> type, false otherwise.
 18    /// </summary>
 019    public bool IsWrapped { get; set; }
 20
 21    /// <summary>
 22    /// A string value that hints at what UI control might be used to render in a UI tool.
 23    /// </summary>
 024    public string UIHint { get; set; } = default!;
 25
 26    /// <summary>
 27    /// The category to which this input belongs. Can be used by UI to e.g. render different inputs in different tabs.
 28    /// </summary>
 029    public string? Category { get; set; }
 30
 31    /// <summary>
 32    /// The default value.
 33    /// </summary>
 034    public object? DefaultValue { get; set; }
 35
 36    /// <summary>
 37    /// The default syntax.
 38    /// </summary>
 039    public string? DefaultSyntax { get; set; }
 40
 41    /// <summary>
 42    /// True if the input is readonly, false otherwise.
 43    /// </summary>
 044    public bool? IsReadOnly { get; set; }
 45
 46    /// <summary>
 47    /// The storage driver type to use for persistence.
 48    /// If no driver is specified, the referenced memory block will remain in memory for as long as the expression execu
 49    /// </summary>
 050    public string? StorageDriverType { get; set; }
 51
 52    /// <summary>
 53    /// A dictionary of UI specifications to be used by the UI.
 54    /// </summary>
 055    public IDictionary<string, object>? UISpecifications { get; set; }
 56}