< Summary - Heimdall API

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_ScopeId()100%11100%
get_Name()100%11100%
get_Email()100%11100%
get_Password()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/CreateScopeOwnerCommand.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 create a brand-new <c>ScopeAdmin</c> person directly as a co-owner of a scope
 9///     (UC-06 path c, FR-SC-12). <see cref="ScopeId" /> comes from the route;
 10///     <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from the
 11///     authenticated caller (for the AF-06e ownership check) and are never bound from the body. They
 12///     are <c>[JsonIgnore]</c>, so they are not deserialized from the body and do not appear in the
 13///     request schema.
 14/// </summary>
 15public class CreateScopeOwnerCommand : BaseCommand, IActorScoped
 16{
 17    [JsonIgnore]
 2118    public Guid ScopeId { get; set; }
 19
 4920    public string Name { get; set; } = string.Empty;
 21
 5922    public string Email { get; set; } = string.Empty;
 23
 4924    public string Password { get; set; } = string.Empty;
 25
 26    [JsonIgnore]
 2027    public Guid ActingPersonId { get; set; }
 28
 29    [JsonIgnore]
 2030    public int ActingRole { get; set; }
 31}