< Summary - Heimdall API

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Ground()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/RestrictProcessingCommand.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///     A data subject's request to have processing of their own identity restricted (UC-44, GDPR
 9///     Art. 18, LGPD Art. 18 III–IV) — suspended without being deleted, while something about it is
 10///     disputed.
 11/// </summary>
 12/// <remarks>
 13///     The subject is the authenticated caller. No identifier appears in the path or the body, so
 14///     one identity cannot restrict another's — the same shape as UC-41 and UC-42.
 15/// </remarks>
 16public class RestrictProcessingCommand : BaseCommand, IActorScoped
 17{
 18    /// <summary>
 19    ///     Which of Art. 18(1)'s four grounds the restriction rests on (see
 20    ///     <c>RestrictionGrounds</c>).
 21    /// </summary>
 3822    public int Ground { get; set; }
 23
 24    [JsonIgnore]
 2125    public Guid ActingPersonId { get; set; }
 26
 27    [JsonIgnore]
 1028    public int ActingRole { get; set; }
 29}