< Summary - Heimdall API

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

Metrics

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

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Input/GetTwoFactorStatusQuery.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 read the caller's own two-factor authentication status (FR-2F-15). The person
 9///     acted on is always the caller: <see cref="ActingPersonId" />/<see cref="ActingRole" /> are
 10///     set by the controller from the authenticated caller and are never taken from the request,
 11///     which is what keeps a person's configuration reachable only through their own identity and
 12///     never by an identifier in a path (see <c>TwoFactorAuth</c>). The pagination members inherited
 13///     from <see cref="BaseQuery" /> are unused.
 14/// </summary>
 15public class GetTwoFactorStatusQuery : BaseQuery, IActorScoped
 16{
 17    [JsonIgnore]
 2018    public Guid ActingPersonId { get; set; }
 19
 20    [JsonIgnore]
 1021    public int ActingRole { get; set; }
 22}