< Summary

Information
Class: Elsa.Workflows.Api.Endpoints.WorkflowInstances.Journal.List.Request
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Endpoints/WorkflowInstances/Journal/List/Models.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 43
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_WorkflowInstanceId()100%210%
get_Page()100%210%
get_PageSize()100%210%
get_Skip()100%210%
get_Take()100%210%

File(s)

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

#LineLine coverage
 1using Elsa.Workflows.Api.Models;
 2using FastEndpoints;
 3
 4// ReSharper disable NotAccessedPositionalProperty.Global
 5
 6namespace Elsa.Workflows.Api.Endpoints.WorkflowInstances.Journal.List;
 7
 8/// <summary>
 9/// Represents a request for a page of workflow execution log records.
 10/// </summary>
 11internal class Request
 12{
 13    /// <summary>
 14    /// The ID of the workflow instance to get the execution log for.
 15    /// </summary>
 016    [BindFrom("id")] public string WorkflowInstanceId { get; set; } = default!;
 17
 18    /// <summary>
 19    /// The zero-based page number to get.
 20    /// </summary>
 021    public int? Page { get; set; }
 22
 23    /// <summary>
 24    /// The size of the page to get.
 25    /// </summary>
 026    public int? PageSize { get; set; }
 27
 28    /// <summary>
 29    /// The number of records to skip.
 30    /// </summary>
 031    public int? Skip { get; set; }
 32
 33    /// <summary>
 34    /// The number of records to take.
 35    /// </summary>
 036    public int? Take { get; set; }
 37}
 38
 39internal class Response(ICollection<ExecutionLogRecord> items, long totalCount)
 40{
 41    public ICollection<ExecutionLogRecord> Items { get; } = items;
 42    public long TotalCount { get; } = totalCount;
 43}