< Summary - Heimdall API

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

File(s)

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

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Input;
 4
 5/// <summary>
 6///     Intent to permanently (hard) delete a scope permission (UC-35). The permission is addressed by
 7///     <see cref="Id" /> within <see cref="ScopeId" />, both bound from the route. Removing it
 8///     cascades to nothing — no entity carries a foreign key to a scope permission, and the scope it
 9///     points at is left intact. The command carries no acting person: UC-35's only actor is the
 10///     System Admin and the endpoint's role requirement settles that entirely, so the handler has no
 11///     data-dependent rule left to apply.
 12/// </summary>
 13public class HardDeleteScopePermissionCommand : BaseCommand
 14{
 15    /// <summary>Public identifier of the scope the permission belongs to (bound from the route).</summary>
 3016    public Guid ScopeId { get; set; }
 17
 18    /// <summary>Public identifier of the permission to hard-delete (bound from the route).</summary>
 3119    public Guid Id { get; set; }
 20}

Methods/Properties

get_ScopeId()
get_Id()