< Summary - Heimdall API

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_ScopeId()100%11100%
get_Name()100%11100%
get_Email()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/ListScopePersonsQuery.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 the <c>User</c> persons of a scope, with pagination and optional filtering
 9///     (UC-07, FR-PE-04). <see cref="ScopeId" /> comes from the route;
 10///     <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from the
 11///     authenticated caller and are never taken from the request. All three are
 12///     <c>[JsonIgnore]</c>, which <c>ServerPopulatedBindingMetadataProvider</c> turns into
 13///     "not bindable", so they never reach the public contract.
 14/// </summary>
 15public class ListScopePersonsQuery : BaseQuery, IActorScoped
 16{
 17    /// <summary>Public identifier of the scope whose Users are listed (assigned from the route).</summary>
 18    [JsonIgnore]
 7319    public Guid ScopeId { get; set; }
 20
 21    /// <summary>Optional case-insensitive substring filter on the person's name.</summary>
 7222    public string? Name { get; set; }
 23
 24    /// <summary>Optional case-insensitive substring filter on the person's email.</summary>
 7025    public string? Email { get; set; }
 26
 27    /// <summary>When <c>true</c>, logically deleted persons are included in the results (FR-PE-08).</summary>
 3228    public bool IncludeDeleted { get; set; }
 29
 30    [JsonIgnore]
 10331    public Guid ActingPersonId { get; set; }
 32
 33    [JsonIgnore]
 10334    public int ActingRole { get; set; }
 35}