< Summary

Information
Class: Elsa.Workflows.Api.Endpoints.WorkflowDefinitions.Export.Request
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowDefinitions/Export/Models.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 28
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_DefinitionId()100%11100%
get_VersionOptions()100%11100%
get_Ids()100%11100%
get_IncludeConsumingWorkflows()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowDefinitions/Export/Models.cs

#LineLine coverage
 1namespace Elsa.Workflows.Api.Endpoints.WorkflowDefinitions.Export;
 2
 3/// <summary>
 4/// Exports the specified workflow definition as JSON download.
 5/// Either specify the <see cref="DefinitionId"/> and optionally the <see cref="VersionOptions"/> or the <see cref="Ids"
 6/// </summary>
 7internal class Request
 8{
 9    /// <summary>
 10    /// The workflow definition ID.
 11    /// </summary>
 812    public string? DefinitionId { get; set; } = null!;
 13
 14    /// <summary>
 15    /// The version options.
 16    /// </summary>
 417    public string? VersionOptions { get; set; }
 18
 19    /// <summary>
 20    /// A list of workflow definition version IDs.
 21    /// </summary>
 622    public ICollection<string>? Ids { get; set; } = null!;
 23
 24    /// <summary>
 25    /// When true, automatically includes all consuming workflow definitions in the export.
 26    /// </summary>
 827    public bool IncludeConsumingWorkflows { get; set; }
 28}