< Summary - Syki

Information
Class: Syki.Back.Features.Identity.GetTwoFactorKey.GetTwoFactorKeyOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Identity/GetTwoFactorKey/GetTwoFactorKeyOut.cs
Tag: 56_26538939494
Line coverage
27%
Covered lines: 3
Uncovered lines: 8
Coverable lines: 11
Total lines: 29
Line coverage: 27.2%
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_Key()100%11100%
get_QrCodeBase64()100%11100%
get_TwoFactorEnabled()100%11100%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Identity/GetTwoFactorKey/GetTwoFactorKeyOut.cs

#LineLine coverage
 1namespace Syki.Back.Features.Identity.GetTwoFactorKey;
 2
 3public class GetTwoFactorKeyOut : IApiDto<GetTwoFactorKeyOut>
 4{
 5    /// <summary>
 6    /// Chave 2FA do usuário.
 7    /// </summary>
 1388    public string Key { get; set; }
 9
 10    /// <summary>
 11    /// QrCode em Base64 contendo a chave 2FA do usuário.
 12    /// </summary>
 10413    public string QrCodeBase64 { get; set; }
 14
 15    /// <summary>
 16    /// Se o 2FA do usuário está habilitado ou não.
 17    /// </summary>
 10618    public bool TwoFactorEnabled { get; set; }
 19
 20    public static IEnumerable<(string, GetTwoFactorKeyOut)> GetExamples() =>
 021    [
 022        ("Exemplo", new()
 023        {
 024            TwoFactorEnabled = true,
 025            Key = "COZF2TE2BEWGHEB77A5THFYHPBC2KHPM",
 026            QrCodeBase64 = @"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABHQAAAR0AQAAAAA4d3wbAAAGVklEQVR4nO3bQW7jMAwF0
 027        }),
 028    ];
 29}