< Summary

Information
Class: Elsa.Workflows.Api.Endpoints.WorkflowInstances.List.Request
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: 17
Coverable lines: 17
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
get_Page()100%210%
get_PageSize()100%210%
get_SearchTerm()100%210%
get_DefinitionId()100%210%
get_DefinitionIds()100%210%
get_CorrelationId()100%210%
get_Name()100%210%
get_Version()100%210%
get_HasIncidents()100%210%
get_IsSystem()100%210%
get_Status()100%210%
get_Statuses()100%210%
get_SubStatus()100%210%
get_SubStatuses()100%210%
get_OrderBy()100%210%
get_OrderDirection()100%210%
get_TimestampFilters()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{
 09    public int? Page { get; set; }
 010    public int? PageSize { get; set; }
 011    public string? SearchTerm { get; set; }
 012    public string? DefinitionId { get; set; }
 013    public ICollection<string>? DefinitionIds { get; set; }
 014    public string? CorrelationId { get; set; }
 015    public string? Name { get; set; }
 016    public int? Version { get; set; }
 017    public bool? HasIncidents { get; set; }
 018    public bool? IsSystem { get; set; }
 019    public WorkflowStatus? Status { get; set; }
 020    public ICollection<string>? Statuses { get; set; }
 021    public WorkflowSubStatus? SubStatus { get; set; }
 022    public ICollection<string>? SubStatuses { get; set; }
 023    public OrderByWorkflowInstance? OrderBy { get; set; }
 024    public OrderDirection? OrderDirection { get; set; }
 025    public ICollection<TimestampFilter>? TimestampFilters { get; set; }
 26}
 27
 28internal class Response(ICollection<WorkflowInstanceSummary> items, long totalCount)
 29{
 30    public ICollection<WorkflowInstanceSummary> Items { get; set; } = items;
 31    public long TotalCount { get; set; } = totalCount;
 32}
 33