< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Input.SetSelfRegistrationCommand
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/SetSelfRegistrationCommand.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 25
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_Id()100%11100%
get_Enabled()100%11100%
get_ActingPersonId()100%11100%
get_ActingRole()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/SetSelfRegistrationCommand.cs

#LineLine coverage
 1using System.Text.Json.Serialization;
 2using ArturRios.Heimdall.Shared.Security;
 3using ArturRios.Mediator.Command;
 4
 5namespace ArturRios.Heimdall.Command.Input;
 6
 7/// <summary>
 8///     Intent to open or close self-registration for a scope (UC-47 toggle, FR-SR-02). Shaped exactly
 9///     like <see cref="SetGoogleSignInCommand" />, for the same reasons: the scope comes from the route,
 10///     the actor from the token, and <see cref="Enabled" /> is nullable so a body omitting it is a 400
 11///     rather than a silent close.
 12/// </summary>
 13public class SetSelfRegistrationCommand : BaseCommand, IActorScoped
 14{
 15    [JsonIgnore]
 1716    public Guid Id { get; set; }
 17
 1818    public bool? Enabled { get; set; }
 19
 20    [JsonIgnore]
 1221    public Guid ActingPersonId { get; set; }
 22
 23    [JsonIgnore]
 1324    public int ActingRole { get; set; }
 25}