< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Output.CreateScopePermissionCommandOutput
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/CreateScopePermissionCommandOutput.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 32
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_Id()100%11100%
get_Name()100%11100%
get_Description()100%11100%
get_IncludeAsJwtClaim()100%11100%
get_ScopeId()100%11100%
get_CreatedAt()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/CreateScopePermissionCommandOutput.cs

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Output;
 4
 5/// <summary>
 6///     The scope permission created by <see cref="Input.CreateScopePermissionCommand" /> (UC-31).
 7///     Only externally-facing <c>PublicId</c> identifiers are exposed; the internal Ids that link the
 8///     row to its scope never leave the data layer.
 9/// </summary>
 10public class CreateScopePermissionCommandOutput : CommandOutput
 11{
 12    /// <summary>Public identifier of the created permission.</summary>
 8513    public Guid Id { get; set; }
 14
 15    /// <summary>Permission display name.</summary>
 10816    public string Name { get; set; } = string.Empty;
 17
 18    /// <summary>Permission description.</summary>
 6519    public string? Description { get; set; }
 20
 21    /// <summary>
 22    ///     Whether the permission's <see cref="Name" /> is added as a claim on the JWT issued to
 23    ///     identities acting within the owning scope.
 24    /// </summary>
 6525    public bool IncludeAsJwtClaim { get; set; }
 26
 27    /// <summary>Public identifier of the scope the permission belongs to.</summary>
 6428    public Guid ScopeId { get; set; }
 29
 30    /// <summary>Creation timestamp.</summary>
 6231    public DateTime CreatedAt { get; set; }
 32}