< Summary

Information
Class: Syki.Shared.TeacherClassStudentOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Teacher/GetTeacherClass/TeacherClassStudentOut.cs
Tag: 22_11348620282
Line coverage
83%
Covered lines: 5
Uncovered lines: 1
Coverable lines: 6
Total lines: 16
Line coverage: 83.3%
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_Id()100%11100%
get_Name()100%11100%
get_AverageNote()100%11100%
get_ExamGrades()100%11100%
get_IsSelected()100%11100%
GetNote(...)100%210%

File(s)

/home/runner/work/syki/syki/Shared/Features/Teacher/GetTeacherClass/TeacherClassStudentOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class TeacherClassStudentOut
 4{
 1865    public Guid Id { get; set; }
 876    public string Name { get; set; }
 877    public decimal AverageNote { get; set; }
 1968    public List<ExamGradeOut> ExamGrades { get; set; } = [];
 9
 5810    public bool IsSelected { get; set; }
 11
 12    public string GetNote(ExamType type)
 13    {
 014        return ExamGrades.Where(x => x.ExamType == type).First().Note.Format();
 15    }
 16}