< Summary

Information
Class: AsiBackbone.EntityFrameworkCore.Persistence.AsiBackboneAuditResidueLifecycleEventEntity
Assembly: AsiBackbone.EntityFrameworkCore
File(s): /home/runner/work/AsiBackbone/AsiBackbone/src/AsiBackbone.EntityFrameworkCore/Persistence/AsiBackboneAuditResidueLifecycleEventEntity.cs
Line coverage
100%
Covered lines: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 60
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_EventId()100%11100%
get_Stage()100%11100%
get_StageSequence()100%11100%
get_OccurredUtc()100%11100%
get_CorrelationId()100%11100%
get_AuditResidueId()100%11100%
get_TraceId()100%11100%
get_OperationName()100%11100%
get_Outcome()100%11100%
get_MetadataJson()100%11100%

File(s)

/home/runner/work/AsiBackbone/AsiBackbone/src/AsiBackbone.EntityFrameworkCore/Persistence/AsiBackboneAuditResidueLifecycleEventEntity.cs

#LineLine coverage
 1using AsiBackbone.Core.Audit;
 2using AsiBackbone.Core.Entities;
 3
 4namespace AsiBackbone.EntityFrameworkCore.Persistence;
 5
 6/// <summary>
 7/// Represents the Entity Framework Core persistence shape for an audit residue lifecycle event.
 8/// </summary>
 9public sealed class AsiBackboneAuditResidueLifecycleEventEntity : AsiBackboneEntity
 10{
 11    /// <summary>
 12    /// Gets or sets the stable lifecycle event identifier.
 13    /// </summary>
 16014    public string EventId { get; set; } = string.Empty;
 15
 16    /// <summary>
 17    /// Gets or sets the lifecycle stage represented by this event.
 18    /// </summary>
 8019    public AuditResidueLifecycleStage Stage { get; set; }
 20
 21    /// <summary>
 22    /// Gets or sets the stable lifecycle stage sequence value.
 23    /// </summary>
 3824    public int StageSequence { get; set; }
 25
 26    /// <summary>
 27    /// Gets or sets the UTC timestamp when the lifecycle event occurred.
 28    /// </summary>
 8029    public DateTimeOffset OccurredUtc { get; set; }
 30
 31    /// <summary>
 32    /// Gets or sets the correlation identifier that links the lifecycle event to the original decision context.
 33    /// </summary>
 16034    public string CorrelationId { get; set; } = string.Empty;
 35
 36    /// <summary>
 37    /// Gets or sets the related audit residue identifier, when available.
 38    /// </summary>
 8039    public string? AuditResidueId { get; set; }
 40
 41    /// <summary>
 42    /// Gets or sets the trace identifier associated with the lifecycle event, when available.
 43    /// </summary>
 8044    public string? TraceId { get; set; }
 45
 46    /// <summary>
 47    /// Gets or sets the operation name associated with the lifecycle event, when available.
 48    /// </summary>
 8049    public string? OperationName { get; set; }
 50
 51    /// <summary>
 52    /// Gets or sets the lifecycle outcome associated with the event, when available.
 53    /// </summary>
 8054    public string? Outcome { get; set; }
 55
 56    /// <summary>
 57    /// Gets or sets serialized framework-neutral lifecycle metadata supplied by the host.
 58    /// </summary>
 16059    public string MetadataJson { get; set; } = "{}";
 60}