< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Query.Input.ListScopesQuery
Assembly: ArturRios.Heimdall.Query
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Input/ListScopesQuery.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 28
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 4
Fully covered methods: 4
Total methods: 4
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Name()100%11100%
get_IncludeDeleted()100%11100%
get_ActingPersonId()100%11100%
get_ActingRole()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Input/ListScopesQuery.cs

#LineLine coverage
 1using System.Text.Json.Serialization;
 2using ArturRios.Heimdall.Shared.Security;
 3using ArturRios.Mediator.Query;
 4
 5namespace ArturRios.Heimdall.Query.Input;
 6
 7/// <summary>
 8///     Request to list scopes with pagination and optional filtering (UC-02 read b, FR-SC-03). Page
 9///     number and size are inherited from <see cref="BaseQuery" />.
 10///     <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from the
 11///     authenticated caller and are never taken from the request; both are <c>[JsonIgnore]</c>,
 12///     which <c>ServerPopulatedBindingMetadataProvider</c> turns into "not bindable", so they never
 13///     reach the public contract.
 14/// </summary>
 15public class ListScopesQuery : BaseQuery, IActorScoped
 16{
 17    /// <summary>Optional case-insensitive substring filter on the scope name.</summary>
 3918    public string? Name { get; set; }
 19
 20    /// <summary>When <c>true</c>, logically deleted scopes are included in the results (FR-SC-07).</summary>
 1421    public bool IncludeDeleted { get; set; }
 22
 23    [JsonIgnore]
 2324    public Guid ActingPersonId { get; set; }
 25
 26    [JsonIgnore]
 2927    public int ActingRole { get; set; }
 28}