< Summary

Information
Class: Elsa.Labels.Endpoints.Labels.List.Request
Assembly: Elsa.Labels
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Labels/Endpoints/Labels/List/Models.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 18
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%
ToPageArgs()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Labels/Endpoints/Labels/List/Models.cs

#LineLine coverage
 1using Elsa.Common.Models;
 2using Elsa.Labels.Entities;
 3
 4namespace Elsa.Labels.Endpoints.Labels.List;
 5
 6public class Request
 7{
 08    public int? Page { get; set; }
 09    public int? PageSize { get; set; }
 10
 011    public PageArgs ToPageArgs() => PageArgs.FromPage(Page, PageSize);
 12}
 13
 14public class Response
 15{
 16    public ICollection<Label> Items { get; set; } = default!;
 17    public long TotalCount { get; set; }
 18}