< Summary - Heimdall API

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_ScopeId()100%11100%
get_Id()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/GetGoogleUserByIdQuery.cs

#LineLine coverage
 1using ArturRios.Heimdall.Shared.Security;
 2using ArturRios.Mediator.Query;
 3
 4namespace ArturRios.Heimdall.Query.Input;
 5
 6/// <summary>
 7///     Request to retrieve a single Google User by its <c>PublicId</c> within a scope (UC-27,
 8///     FR-GO-14). The pagination members inherited from <see cref="BaseQuery" /> are unused for a
 9///     by-id lookup. <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the
 10///     controller from the authenticated caller, for the AF-27b visibility rule.
 11/// </summary>
 12public class GetGoogleUserByIdQuery : BaseQuery, IActorScoped
 13{
 14    /// <summary>Public identifier of the scope the Google User must belong to (from the route).</summary>
 3715    public Guid ScopeId { get; set; }
 16
 17    /// <summary>Public identifier of the Google User to retrieve.</summary>
 3818    public Guid Id { get; set; }
 19
 20    /// <summary>When <c>true</c>, a logically deleted Google User is still returned (FR-GO-17).</summary>
 3621    public bool IncludeDeleted { get; set; }
 22
 23    /// <summary>
 24    ///     The acting caller's <c>PublicId</c>. For a Google User this is their own Google User
 25    ///     <c>PublicId</c> — UC-25 issues the token claiming it in the same position a person's would
 26    ///     occupy — which is what lets the handler recognise a self-read.
 27    /// </summary>
 4128    public Guid ActingPersonId { get; set; }
 29
 2930    public int ActingRole { get; set; }
 31}