< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowDefinitions.Models.VariableDefinition
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowDefinitions/Models/VariableDefinition.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 37
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_Id()100%210%
get_Name()100%210%
get_TypeName()100%210%
get_IsArray()100%210%
get_Value()100%210%
get_StorageDriverTypeName()100%210%

File(s)

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

#LineLine coverage
 1namespace Elsa.Api.Client.Resources.WorkflowDefinitions.Models;
 2
 3/// <summary>
 4/// Stores information about a workflow variable.
 5/// </summary>
 6public class VariableDefinition
 7{
 8    /// <summary>
 9    /// Gets or sets the ID of the variable.
 10    /// </summary>
 011    public string Id { get; set; } = default!;
 12
 13    /// <summary>
 14    /// Gets or sets the name of the variable.
 15    /// </summary>
 016    public string Name { get; set; } = default!;
 17
 18    /// <summary>
 19    /// Gets or sets the type of the variable.
 20    /// </summary>
 021    public string TypeName { get; set; } = default!;
 22
 23    /// <summary>
 24    /// Gets or sets whether the variable is an array.
 25    /// </summary>
 026    public bool IsArray { get; set; }
 27
 28    /// <summary>
 29    /// Gets or sets the default value of the variable.
 30    /// </summary>
 031    public string? Value { get; set; }
 32
 33    /// <summary>
 34    /// Gets or sets the storage driver type name of the variable.
 35    /// </summary>
 036    public string? StorageDriverTypeName { get; set; }
 37}