< Summary - Heimdall API

Information
Class: ArturRios.Heimdall.Command.Output.EnableTwoFactorAuthCommandOutput
Assembly: ArturRios.Heimdall.Command
File(s): /home/runner/work/heimdall-api/heimdall-api/src/Application/ArturRios.Heimdall.Command/Output/EnableTwoFactorAuthCommandOutput.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 19
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_OtpAuthUri()100%11100%
get_EmailCodeSent()100%11100%

File(s)

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

#LineLine coverage
 1using ArturRios.Mediator.Command;
 2
 3namespace ArturRios.Heimdall.Command.Output;
 4
 5/// <summary>
 6///     The result of initiating two-factor authentication setup (UC-36). Nothing is active yet — the
 7///     caller confirms with the returned pending methods in UC-37.
 8/// </summary>
 9public class EnableTwoFactorAuthCommandOutput : CommandOutput
 10{
 11    /// <summary>
 12    ///     The <c>otpauth://</c> provisioning URI for QR scanning, present only when the App method
 13    ///     was selected (FR-2F-02). The underlying secret is never returned in plaintext again.
 14    /// </summary>
 8915    public string? OtpAuthUri { get; set; }
 16
 17    /// <summary>Whether a 6-digit email code was sent, present only when the Email method was selected.</summary>
 5718    public bool? EmailCodeSent { get; set; }
 19}