< Summary

Information
Class: Syki.Front.Features.Cross.SetupMfa.SetupMfaDialog
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Features/Cross/SetupMfa/SetupMfaDialog.razor
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 34
Line coverage: 0%
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_MudDialog()100%210%
Submit()100%210%

File(s)

/home/runner/work/syki/syki/Front/Features/Cross/SetupMfa/SetupMfaDialog.razor

#LineLine coverage
 1@namespace Syki.Front.Features.Cross.SetupMfa
 2
 3<MudDialog Class="pb-2" ContentClass="pt-0">
 4    <TitleContent>
 5        <MudText Typo="Typo.h6">
 6            <MudIcon Icon="@Icons.Material.Filled.Done" Class="mr-1 mb-n1" />
 7            2FA configurado com sucesso!
 8        </MudText>
 9    </TitleContent>
 10    <DialogContent>
 11        <MudDivider Class="mb-4"/>
 12        <MudText>No seu próximo login já vai ser necessário informar os dois fatores de autenticação.</MudText>
 13    </DialogContent>
 14    <DialogActions>
 15        <MudSpacer/>
 16        <DialogSaveButton Text="Continuar" OnClick="@Submit" />
 17        <MudSpacer/>
 18    </DialogActions>
 19</MudDialog>
 20
 21@inject NavigationManager Nav
 22
 23@code
 24{
 25    [CascadingParameter]
 026    MudDialogInstance MudDialog { get; set; }
 27
 28    private void Submit()
 29    {
 030        Nav.NavigateTo("/");
 31
 032        MudDialog.Close(DialogResult.Ok(true));
 033    }
 34}

Methods/Properties

get_MudDialog()
Submit()