< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Input.CreateApplicationCommand
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/CreateApplicationCommand.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
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: 5
Fully covered methods: 5
Total methods: 5
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_OwnerId()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/CreateApplicationCommand.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 register an application within a scope (UC-16). <see cref="ScopeId" /> comes from the
 9///     route; <see cref="ActingPersonId" />/<see cref="ActingRole" /> are set by the controller from
 10///     the authenticated caller (for the AF-16c self-owner rule and the Scope Admin ownership check)
 11///     and are never bound from the body. They are <c>[JsonIgnore]</c>, so they are not deserialized
 12///     from the body and do not appear in the request schema.
 13/// </summary>
 14public class CreateApplicationCommand : BaseCommand, IActorScoped
 15{
 16    [JsonIgnore]
 6217    public Guid ScopeId { get; set; }
 18
 15919    public string Name { get; set; } = string.Empty;
 20
 21    /// <summary>Public identifier of the person that will own the application (FR-AP-03).</summary>
 11322    public Guid OwnerId { get; set; }
 23
 24    [JsonIgnore]
 5725    public Guid ActingPersonId { get; set; }
 26
 27    [JsonIgnore]
 7428    public int ActingRole { get; set; }
 29}