< Summary

Information
Class: Elsa.Connections.Models.ConnectionOffboardingOperation
Assembly: Elsa.Connections
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Connections/Models/ConnectionOffboardingOperation.cs
Line coverage
82%
Covered lines: 14
Uncovered lines: 3
Coverable lines: 17
Total lines: 42
Line coverage: 82.3%
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_Id()100%11100%
get_TenantId()100%11100%
get_EnvironmentId()100%11100%
get_ConnectionId()100%11100%
get_ProviderId()100%11100%
get_ProviderAccountId()100%11100%
get_Kind()100%11100%
get_GenerationId()100%11100%
get_Status()100%11100%
get_AttemptCount()100%210%
get_Fence()100%11100%
get_CreatedAt()100%11100%
get_UpdatedAt()100%11100%
get_NextAttemptAt()100%11100%
get_LeaseExpiresAt()100%11100%
get_LastSafeErrorCode()100%210%
ToString()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Connections/Models/ConnectionOffboardingOperation.cs

#LineLine coverage
 1namespace Elsa.Connections.Models;
 2
 3/// <summary>Durable metadata for one local disconnect or provider offboarding action. It never contains credential valu
 4public sealed class ConnectionOffboardingOperation
 5{
 1356    public string Id { get; set; } = default!;
 707    public string TenantId { get; set; } = default!;
 708    public string EnvironmentId { get; set; } = default!;
 709    public string ConnectionId { get; set; } = default!;
 4410    public string ProviderId { get; set; } = default!;
 4411    public string ProviderAccountId { get; set; } = default!;
 6612    public ConnectionOffboardingOperationKind Kind { get; set; }
 5713    public string? GenerationId { get; set; }
 8914    public ConnectionOffboardingOperationStatus Status { get; set; }
 015    public int AttemptCount { get; set; }
 6816    public long Fence { get; set; }
 3517    public DateTimeOffset CreatedAt { get; set; }
 3518    public DateTimeOffset UpdatedAt { get; set; }
 119    public DateTimeOffset? NextAttemptAt { get; set; }
 320    public DateTimeOffset? LeaseExpiresAt { get; set; }
 021    public string? LastSafeErrorCode { get; set; }
 22
 023    public override string ToString() => $"ConnectionOffboardingOperation {{ Id = {Id}, Kind = {Kind}, Status = {Status}
 24}
 25
 26public enum ConnectionOffboardingOperationKind
 27{
 28    LocalDisconnect,
 29    TokenPairRevocation,
 30    InstallationUninstall
 31}
 32
 33public enum ConnectionOffboardingOperationStatus
 34{
 35    Pending,
 36    Claimed,
 37    ProviderCallStarted,
 38    RetryScheduled,
 39    UnknownOutcome,
 40    Completed,
 41    TerminalFailure
 42}