< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Input.IssueApplicationCredentialCommand
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Input/IssueApplicationCredentialCommand.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_Id()100%11100%
get_ExpiresAt()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/IssueApplicationCredentialCommand.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///     Issues a secret an application can exchange for an application token (UC-53, FR-AP-10).
 9///     The route supplies the scope and the application; the body only the optional expiry.
 10/// </summary>
 11public class IssueApplicationCredentialCommand : BaseCommand, IActorScoped
 12{
 13    /// <summary>The scope's <c>PublicId</c>, from the route.</summary>
 14    [JsonIgnore]
 5215    public Guid ScopeId { get; set; }
 16
 17    /// <summary>The application's <c>PublicId</c>, from the route.</summary>
 18    [JsonIgnore]
 5219    public Guid Id { get; set; }
 20
 21    /// <summary>When the credential stops being accepted; omitted for never. Must be in the future.</summary>
 9222    public DateTime? ExpiresAt { get; set; }
 23
 24    [JsonIgnore]
 5225    public Guid ActingPersonId { get; set; }
 26
 27    [JsonIgnore]
 5228    public int ActingRole { get; set; }
 29}