< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Query.Output.AuditLogEntryOutput
Assembly: ArturRios.Heimdall.Query
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Query/Output/AuditLogEntryOutput.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 34
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage
100%
Covered methods: 8
Fully covered methods: 8
Total methods: 8
Method coverage: 100%
Full method coverage: 100%

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Id()100%11100%
get_RecordedAt()100%11100%
get_ActorId()100%11100%
get_ActorRole()100%11100%
get_Action()100%11100%
get_TargetId()100%11100%
get_Succeeded()100%11100%
get_FailureReason()100%11100%

File(s)

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

#LineLine coverage
 1using ArturRios.Mediator.Query;
 2
 3namespace ArturRios.Heimdall.Query.Output;
 4
 5/// <summary>
 6///     One audit-trail entry as stored (UC-48, FR-AT-02). Nothing is joined or inferred: an actor the
 7///     retention pass has cleared, or that never existed (an anonymous write), is <c>null</c> here too.
 8/// </summary>
 9public class AuditLogEntryOutput : QueryOutput
 10{
 11    /// <summary>The entry's public id.</summary>
 9912    public Guid Id { get; set; }
 13
 14    /// <summary>When the entry was recorded (UTC).</summary>
 7915    public DateTime RecordedAt { get; set; }
 16
 17    /// <summary>The acting person's public id; <c>null</c> for an anonymous write or a cleared attribution.</summary>
 8418    public Guid? ActorId { get; set; }
 19
 20    /// <summary>The acting person's role value (see <c>Roles</c>); <c>null</c> whenever <see cref="ActorId" /> is.</sum
 8321    public int? ActorRole { get; set; }
 22
 23    /// <summary>The command's type name, e.g. <c>CreateScopeCommand</c>.</summary>
 15024    public string Action { get; set; } = string.Empty;
 25
 26    /// <summary>The affected entity's public id; <c>null</c> when none could be resolved, as for every refusal.</summar
 8427    public Guid? TargetId { get; set; }
 28
 29    /// <summary>Whether the write completed; <c>false</c> for a refusal.</summary>
 8230    public bool Succeeded { get; set; }
 31
 32    /// <summary>A refusal's canonical reason; <c>null</c> on success.</summary>
 8133    public string? FailureReason { get; set; }
 34}