< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowDefinitions.Requests.BulkRetractWorkflowDefinitionsRequest
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowDefinitions/Requests/BulkRetractWorkflowDefinitionsRequest.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 21
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_DefinitionIds()100%210%

File(s)

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

#LineLine coverage
 1namespace Elsa.Api.Client.Resources.WorkflowDefinitions.Requests;
 2
 3/// <summary>
 4/// A request to retract many workflow definitions.
 5/// </summary>
 6public class BulkRetractWorkflowDefinitionsRequest
 7{
 8    /// <summary>
 9    /// Initializes a new instance of the <see cref="BulkRetractWorkflowDefinitionsRequest"/> class.
 10    /// </summary>
 11    /// <param name="definitionIds">The IDs of the workflow definitions to retract.</param>
 012    public BulkRetractWorkflowDefinitionsRequest(IEnumerable<string> definitionIds)
 13    {
 014        DefinitionIds = definitionIds.ToArray();
 015    }
 16
 17    /// <summary>
 18    /// Gets or sets the IDs of the workflow definitions to delete.
 19    /// </summary>
 020    public string[] DefinitionIds { get; set; }
 21}