< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowDefinitions.Models.ArgumentDefinition
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowDefinitions/Models/ArgumentDefinition.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 42
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Type()100%210%
get_IsArray()100%210%
get_Name()100%210%
get_DisplayName()100%210%
get_Description()100%210%
get_Category()100%210%
GetTypeDisplayName()0%620%

File(s)

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

#LineLine coverage
 1namespace Elsa.Api.Client.Resources.WorkflowDefinitions.Models;
 2
 3/// <summary>
 4/// Base class for workflow input and output definitions.
 5/// </summary>
 6public abstract class ArgumentDefinition
 7{
 8    /// <summary>
 9    /// The type of the input value.
 10    /// </summary>
 011    public string Type { get; set; } = default!;
 12
 13    /// <summary>
 14    /// Indicates whether the input is an array.
 15    /// </summary>
 016    public bool IsArray { get; set; }
 17
 18    /// <summary>
 19    /// The technical name of the input.
 20    /// </summary>
 021    public string Name { get; set; } = default!;
 22
 23    /// <summary>
 24    /// A user friendly name of the input.
 25    /// </summary>
 026    public string DisplayName { get; set; } = default!;
 27
 28    /// <summary>
 29    /// A description of the input.
 30    /// </summary>
 031    public string Description { get; set; } = default!;
 32
 33    /// <summary>
 34    /// The category to which this input belongs.
 35    /// </summary>
 036    public string Category { get; set; } = default!;
 37
 38    /// <summary>
 39    /// The type name of the variable, including the array indicator.
 40    /// </summary>
 041    public string GetTypeDisplayName() => IsArray ? $"{Type}[]" : Type;
 42}