< Summary - Heimdall API

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

#LineLine coverage
 1using ArturRios.Heimdall.Shared.Security;
 2using ArturRios.Mediator.Command;
 3
 4namespace ArturRios.Heimdall.Command.Input;
 5
 6/// <summary>
 7///     Intent to logically delete a person (UC-09). The person is addressed by <see cref="Id" />,
 8///     bound from the route. The deletion sets the person's <c>IsDeleted</c> flag and cascades to
 9///     nothing — their join rows, tokens, and owned applications are left untouched.
 10///     <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from the
 11///     authenticated caller and are never bound from the request.
 12/// </summary>
 13public class DeletePersonCommand : BaseCommand, IActorScoped
 14{
 15    /// <summary>Public identifier of the person to delete (bound from the route).</summary>
 3916    public Guid Id { get; set; }
 17
 4218    public Guid ActingPersonId { get; set; }
 19
 4620    public int ActingRole { get; set; }
 21}