< Summary

Information
Class: AsiBackbone.EntityFrameworkCore.Persistence.AsiBackboneHandshakeRequestEntity
Assembly: AsiBackbone.EntityFrameworkCore
File(s): /home/runner/work/AsiBackbone/AsiBackbone/src/AsiBackbone.EntityFrameworkCore/Persistence/AsiBackboneHandshakeRequestEntity.cs
Line coverage
100%
Covered lines: 16
Uncovered lines: 0
Coverable lines: 16
Total lines: 92
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_HandshakeId()100%11100%
get_SchemaVersion()100%11100%
get_ActorId()100%11100%
get_ActorType()100%11100%
get_ActorDisplayName()100%11100%
get_OperationName()100%11100%
get_ReasonCode()100%11100%
get_Message()100%11100%
get_RequiredAcknowledgmentCode()100%11100%
get_RequiredAcknowledgmentText()100%11100%
get_RiskLevel()100%11100%
get_RiskCategory()100%11100%
get_CorrelationId()100%11100%
get_TraceId()100%11100%
get_PolicyVersion()100%11100%
get_PolicyHash()100%11100%

File(s)

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

#LineLine coverage
 1using AsiBackbone.Core.Actors;
 2using AsiBackbone.Core.Entities;
 3using AsiBackbone.Core.Handshakes;
 4using AsiBackbone.Core.Serialization;
 5
 6namespace AsiBackbone.EntityFrameworkCore.Persistence;
 7
 8/// <summary>
 9/// Represents the Entity Framework Core persistence shape for an AsiBackbone handshake request.
 10/// </summary>
 11public sealed class AsiBackboneHandshakeRequestEntity : AsiBackboneEntity
 12{
 13    /// <summary>
 14    /// Gets or sets the stable handshake identifier.
 15    /// </summary>
 2016    public string HandshakeId { get; set; } = string.Empty;
 17
 18    /// <summary>
 19    /// Gets or sets the serialized schema version for this handshake request.
 20    /// </summary>
 2021    public string SchemaVersion { get; set; } = AsiBackboneSchemaVersions.StableArtifactsV1;
 22
 23    /// <summary>
 24    /// Gets or sets the stable actor identifier associated with the handshake.
 25    /// </summary>
 2026    public string ActorId { get; set; } = string.Empty;
 27
 28    /// <summary>
 29    /// Gets or sets the actor type associated with the handshake.
 30    /// </summary>
 831    public AsiBackboneActorType ActorType { get; set; }
 32
 33    /// <summary>
 34    /// Gets or sets the optional display name or label associated with the actor.
 35    /// </summary>
 636    public string? ActorDisplayName { get; set; }
 37
 38    /// <summary>
 39    /// Gets or sets the operation name requiring acknowledgment.
 40    /// </summary>
 2041    public string OperationName { get; set; } = string.Empty;
 42
 43    /// <summary>
 44    /// Gets or sets the machine-readable reason code explaining why the handshake is required.
 45    /// </summary>
 2046    public string ReasonCode { get; set; } = string.Empty;
 47
 48    /// <summary>
 49    /// Gets or sets the human-readable message explaining why the handshake is required.
 50    /// </summary>
 2051    public string Message { get; set; } = string.Empty;
 52
 53    /// <summary>
 54    /// Gets or sets the required acknowledgment code the host may display or require before execution.
 55    /// </summary>
 2056    public string RequiredAcknowledgmentCode { get; set; } = string.Empty;
 57
 58    /// <summary>
 59    /// Gets or sets the required acknowledgment text the host may display before execution.
 60    /// </summary>
 2061    public string RequiredAcknowledgmentText { get; set; } = string.Empty;
 62
 63    /// <summary>
 64    /// Gets or sets the risk level associated with the handshake.
 65    /// </summary>
 1066    public LiabilityHandshakeRiskLevel RiskLevel { get; set; }
 67
 68    /// <summary>
 69    /// Gets or sets the optional host-defined risk category associated with the handshake.
 70    /// </summary>
 671    public string? RiskCategory { get; set; }
 72
 73    /// <summary>
 74    /// Gets or sets the correlation identifier associated with the handshake, when supplied by the host.
 75    /// </summary>
 876    public string? CorrelationId { get; set; }
 77
 78    /// <summary>
 79    /// Gets or sets the trace identifier associated with the handshake, when supplied by the host.
 80    /// </summary>
 881    public string? TraceId { get; set; }
 82
 83    /// <summary>
 84    /// Gets or sets the policy version associated with the handshake, when supplied by the host.
 85    /// </summary>
 886    public string? PolicyVersion { get; set; }
 87
 88    /// <summary>
 89    /// Gets or sets the policy hash associated with the handshake, when supplied by the host.
 90    /// </summary>
 891    public string? PolicyHash { get; set; }
 92}