< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowDefinitions.Requests.ListWorkflowDefinitionsRequest
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowDefinitions/Requests/ListWorkflowDefinitionsRequest.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 65
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_DefinitionIds()100%210%
get_Ids()100%210%
get_MaterializerName()100%210%
get_Labels()100%210%
get_SearchTerm()100%210%
get_IsSystem()100%210%
get_OrderBy()100%210%
get_OrderDirection()100%210%

File(s)

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

#LineLine coverage
 1using Elsa.Api.Client.Resources.WorkflowDefinitions.Enums;
 2using Elsa.Api.Client.Shared.Models;
 3using Refit;
 4
 5namespace Elsa.Api.Client.Resources.WorkflowDefinitions.Requests;
 6
 7/// <summary>
 8/// Represents a request to list workflow definitions.
 9/// </summary>
 10public class ListWorkflowDefinitionsRequest
 11{
 12    /// <summary>
 13    /// The page number.
 14    /// </summary>
 015    public int? Page { get; set; }
 16
 17    /// <summary>
 18    /// The page size.
 19    /// </summary>
 020    public int? PageSize { get; set; }
 21
 22    /// <summary>
 23    /// The definition IDs of the workflow definitions to filter by.
 24    /// </summary>
 25    [Query(CollectionFormat.Multi)]
 026    public ICollection<string>? DefinitionIds { get; set; }
 27
 28    /// <summary>
 29    /// The IDs of the workflow definitions to filter by.
 30    /// </summary>
 31    [Query(CollectionFormat.Multi)]
 032    public ICollection<string>? Ids { get; set; }
 33
 34    /// <summary>
 35    /// The name of the workflow materializer to filter by.
 36    /// </summary>
 37    [AliasAs("materializer")]
 038    public string? MaterializerName { get; set; }
 39
 40    /// <summary>
 41    /// The labels to filter by.
 42    /// </summary>
 43    [AliasAs("label")]
 044    public string[]? Labels { get; set; }
 45
 46    /// <summary>
 47    /// The search term used to filter workflow definitions by their name, ID or description.
 48    /// </summary>
 049    public string? SearchTerm { get; set; }
 50
 51    /// <summary>
 52    /// Gets or sets whether to include system workflows.
 53    /// </summary>
 054    public bool? IsSystem { get; set; }
 55
 56    /// <summary>
 57    /// The field to order by.
 58    /// </summary>
 059    public OrderByWorkflowDefinition? OrderBy { get; set; }
 60
 61    /// <summary>
 62    /// The order direction.
 63    /// </summary>
 064    public OrderDirection? OrderDirection { get; set; }
 65}