< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Output.UpdateScopePermissionCommandOutput
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/UpdateScopePermissionCommandOutput.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 35
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 7
Fully covered methods: 7
Total methods: 7
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%
get_UpdatedAt()100%11100%

File(s)

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

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Output;
 4
 5/// <summary>
 6///     The scope permission as it stands after a UC-33 update. Only externally-facing <c>PublicId</c>
 7///     identifiers are exposed; the internal Ids that link the row to its scope never leave the data
 8///     layer.
 9/// </summary>
 10public class UpdateScopePermissionCommandOutput : CommandOutput
 11{
 12    /// <summary>Public identifier of the updated permission.</summary>
 1513    public Guid Id { get; set; }
 14
 15    /// <summary>Permission display name after the update.</summary>
 2116    public string Name { get; set; } = string.Empty;
 17
 18    /// <summary>Permission description after the update.</summary>
 1219    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>
 1225    public bool IncludeAsJwtClaim { get; set; }
 26
 27    /// <summary>Public identifier of the scope the permission belongs to (unchanged by this operation).</summary>
 1228    public Guid ScopeId { get; set; }
 29
 30    /// <summary>Creation timestamp.</summary>
 1131    public DateTime CreatedAt { get; set; }
 32
 33    /// <summary>Update timestamp, stamped by this operation.</summary>
 1134    public DateTime UpdatedAt { get; set; }
 35}