< Summary - Heimdall API

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Enabled()100%11100%
get_RecoveryCodes()100%11100%

File(s)

/home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/ConfirmTwoFactorAuthCommandOutput.cs

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Output;
 4
 5/// <summary>
 6///     The result of confirming two-factor authentication setup (UC-37). The ten recovery codes are
 7///     returned in plaintext this one time only — they are stored thereafter only as hashes and
 8///     cannot be retrieved again (only regenerated, via UC-40).
 9/// </summary>
 10public class ConfirmTwoFactorAuthCommandOutput : CommandOutput
 11{
 12    /// <summary>Always <c>true</c> when this output is returned — confirmation only ever succeeds fully.</summary>
 3813    public bool Enabled { get; set; }
 14
 15    /// <summary>The ten freshly generated recovery codes, in plaintext (FR-2F-05).</summary>
 7016    public List<string> RecoveryCodes { get; set; } = [];
 17}

Methods/Properties

get_Enabled()
get_RecoveryCodes()