< Summary

Information
Class: Elsa.Workflows.Api.Endpoints.WorkflowInstances.List.Response
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowInstances/List/Models.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 33
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_Items()100%210%
get_TotalCount()100%210%

File(s)

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

#LineLine coverage
 1using Elsa.Common.Entities;
 2using Elsa.Workflows.Api.Models;
 3using Elsa.Workflows.Management.Models;
 4
 5namespace Elsa.Workflows.Api.Endpoints.WorkflowInstances.List;
 6
 7public class Request
 8{
 9    public int? Page { get; set; }
 10    public int? PageSize { get; set; }
 11    public string? SearchTerm { get; set; }
 12    public string? DefinitionId { get; set; }
 13    public ICollection<string>? DefinitionIds { get; set; }
 14    public string? CorrelationId { get; set; }
 15    public string? Name { get; set; }
 16    public int? Version { get; set; }
 17    public bool? HasIncidents { get; set; }
 18    public bool? IsSystem { get; set; }
 19    public WorkflowStatus? Status { get; set; }
 20    public ICollection<string>? Statuses { get; set; }
 21    public WorkflowSubStatus? SubStatus { get; set; }
 22    public ICollection<string>? SubStatuses { get; set; }
 23    public OrderByWorkflowInstance? OrderBy { get; set; }
 24    public OrderDirection? OrderDirection { get; set; }
 25    public ICollection<TimestampFilter>? TimestampFilters { get; set; }
 26}
 27
 028internal class Response(ICollection<WorkflowInstanceSummary> items, long totalCount)
 29{
 030    public ICollection<WorkflowInstanceSummary> Items { get; set; } = items;
 031    public long TotalCount { get; set; } = totalCount;
 32}
 33