< Summary

Information
Class: Elsa.Workflows.Api.Endpoints.WorkflowInstances.BulkDelete.Request
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowInstances/BulkDelete/Models.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 15
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_Ids()100%11100%
get_WorkflowDefinitionId()100%11100%
get_WorkflowDefinitionIds()100%11100%

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace Elsa.Workflows.Api.Endpoints.WorkflowInstances.BulkDelete;
 4
 5internal class Request
 6{
 47    public ICollection<string>? Ids { get; set; }
 28    public string? WorkflowDefinitionId { get; set; }
 29    public ICollection<string>? WorkflowDefinitionIds { get; set; }
 10}
 11
 12internal class Response(long deletedCount)
 13{
 14    [JsonPropertyName("deleted")] public long DeletedCount { get; } = deletedCount;
 15}