< Summary

Information
Class: Syki.Front.Features.Teacher.AddExamGradeNote.ExamGradeNoteField
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Features/Teacher/AddExamGradeNote/ExamGradeNoteField.razor
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 37
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_Data()100%210%
get_DataChanged()100%210%
GetLabel()100%210%

File(s)

/home/runner/work/syki/syki/Front/Features/Teacher/AddExamGradeNote/ExamGradeNoteField.razor

#LineLine coverage
 1@namespace Syki.Front.Features.Teacher.AddExamGradeNote
 2
 3<MudStack Row="true" AlignItems="AlignItems.Center" Justify="Justify.Center" Spacing="0" Class="mb-3">
 4    <MudItem xs="4">
 5        <MudText>@(GetLabel())</MudText>
 6    </MudItem>
 7    <MudItem xs="2">
 8        <MudIcon Icon="@Icons.Material.Filled.ArrowRightAlt" />
 9    </MudItem>
 10    <MudItem xs="6">
 11        <MudNumericField
 12            T="decimal"
 13            @bind-Value="@Data.Note"
 14            Max="10.00M"
 15            MaxLength="4"
 16            Min="0"
 17            Format="N2"
 18            HideSpinButtons="true"
 19            Variant="Variant.Outlined"
 20            Margin="Margin.Dense"
 21        />
 22    </MudItem>
 23</MudStack>
 24
 25@code
 26{
 27    [Parameter]
 028    public ExamGradeOut Data { get; set; }
 29
 30    [Parameter]
 031    public EventCallback<ExamGradeOut> DataChanged { get; set; }
 32
 33    private string GetLabel()
 34    {
 035        return $"Nota {Data.ExamType}";
 36    }
 37}