< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Query.Output.ApplicationCredentialOutput
Assembly: ArturRios.Heimdall.Query
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Output/ApplicationCredentialOutput.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 23
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_CreatedAt()100%11100%
get_ExpiresAt()100%11100%
get_RevokedAt()100%11100%
get_LastUsedAt()100%11100%
get_Live()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Output/ApplicationCredentialOutput.cs

#LineLine coverage
 1namespace ArturRios.Heimdall.Query.Output;
 2
 3/// <summary>
 4///     One credential in UC-54's listing. Never the secret, which is shown once by UC-53, and never
 5///     its hash.
 6/// </summary>
 7public class ApplicationCredentialOutput
 8{
 9    /// <summary>The credential's <c>PublicId</c> — UC-55's route value and the token's <c>credentialId</c>.</summary>
 2110    public Guid Id { get; set; }
 11
 1612    public DateTime CreatedAt { get; set; }
 13
 1614    public DateTime? ExpiresAt { get; set; }
 15
 1716    public DateTime? RevokedAt { get; set; }
 17
 18    /// <summary>When a token was last issued from it (UC-56), or <c>null</c> if never.</summary>
 1719    public DateTime? LastUsedAt { get; set; }
 20
 21    /// <summary>Whether UC-56 would accept it now: not revoked and not expired.</summary>
 2122    public bool Live { get; set; }
 23}