< Summary - Heimdall API

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

#LineLine coverage
 1using ArturRios.Heimdall.Shared.Security;
 2using ArturRios.Mediator.Command;
 3
 4namespace ArturRios.Heimdall.Command.Input;
 5
 6/// <summary>
 7///     Intent to promote an existing <c>User</c> of a scope to <c>ScopeAdmin</c>, making them a
 8///     co-owner of that scope (UC-23, FR-SC-08/FR-SC-13/FR-RO-03). Both <see cref="ScopeId" /> and
 9///     <see cref="PersonId" /> are bound from the route — the request carries no body — while
 10///     <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from the
 11///     authenticated caller (for the AF-23c ownership check) and are never bound from the request.
 12/// </summary>
 13public class PromoteScopeUserCommand : BaseCommand, IActorScoped
 14{
 15    /// <summary>Public identifier of the scope the person belongs to and will own (bound from the route).</summary>
 5616    public Guid ScopeId { get; set; }
 17
 18    /// <summary>Public identifier of the person to promote (bound from the route).</summary>
 5219    public Guid PersonId { get; set; }
 20
 5221    public Guid ActingPersonId { get; set; }
 22
 5223    public int ActingRole { get; set; }
 24}