< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Input.GoogleSignOutCommand
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/GoogleSignOutCommand.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 23
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.Command/Input/GoogleSignOutCommand.cs

#LineLine coverage
 1using ArturRios.Heimdall.Shared.Security;
 2using ArturRios.Mediator.Command;
 3
 4namespace ArturRios.Heimdall.Command.Input;
 5
 6/// <summary>
 7///     Intent to end the caller's own Google-authenticated session (UC-26, FR-GO-18). Carries nothing
 8///     but <see cref="ActingPersonId" />/<see cref="ActingRole" />, which the controller sets from the
 9///     authenticated caller and never binds from the request.
 10/// </summary>
 11/// <remarks>
 12///     The absence of any other field is the authorization rule, as it is for
 13///     <see cref="ResendVerificationEmailCommand" />: a Google User id in the body would be a way to
 14///     sign somebody else out, and UC-26 describes a Google User ending their own session.
 15///     <see cref="ActingPersonId" /> holds the Google User's <c>PublicId</c> here — UC-25 issues the
 16///     token claiming it in the same position a person's would occupy.
 17/// </remarks>
 18public class GoogleSignOutCommand : BaseCommand, IActorScoped
 19{
 2020    public Guid ActingPersonId { get; set; }
 21
 622    public int ActingRole { get; set; }
 23}