< Summary

Information
Class: Elsa.Workflows.Api.Endpoints.WorkflowInstances.BulkCancel.Request
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowInstances/BulkCancel/Models.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 34
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_Ids()100%210%
get_DefinitionVersionId()100%210%
get_DefinitionId()100%210%
get_VersionOptions()100%210%

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2using Elsa.Common.Models;
 3
 4namespace Elsa.Workflows.Api.Endpoints.WorkflowInstances.BulkCancel;
 5
 6public class Request
 7{
 8    /// <summary>
 9    /// Gets or sets the IDs of the workflow instances to delete.
 10    /// </summary>
 011    public ICollection<string>? Ids { get; set; }
 12
 13    /// <summary>
 14    /// Gets or sets the definition version id.
 15    /// </summary>
 016    public string? DefinitionVersionId { get; set; }
 17
 18    /// <summary>
 19    /// Represents the ID of a workflow definition.
 20    /// </summary>
 21    /// <remarks>This should be used in combination with <see cref="VersionOptions"/></remarks>
 022    public string? DefinitionId { get; set; }
 23
 24    /// <summary>
 25    /// Represents the version options for getting a specific version.
 26    /// </summary>
 27    /// <remarks>This should be used in combination with <see cref="DefinitionId"/></remarks>
 028    public VersionOptions? VersionOptions { get; set; }
 29}
 30
 31public class Response(int cancelledCount)
 32{
 33    [JsonPropertyName("cancelled")] public int CancelledCount { get; } = cancelledCount;
 34}