< Summary

Information
Class: Syki.Shared.AcademicClassStudentOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Academic/GetAcademicClass/AcademicClassStudentOut.cs
Tag: 22_11348620282
Line coverage
71%
Covered lines: 5
Uncovered lines: 2
Coverable lines: 7
Total lines: 16
Line coverage: 71.4%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
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_Frequency()100%11100%
GetNote(...)0%620%

File(s)

/home/runner/work/syki/syki/Shared/Features/Academic/GetAcademicClass/AcademicClassStudentOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class AcademicClassStudentOut
 4{
 35    public Guid Id { get; set; }
 36    public string Name { get; set; }
 37    public decimal AverageNote { get; set; }
 68    public List<ExamGradeOut> ExamGrades { get; set; } = [];
 49    public decimal Frequency { get; set; }
 10
 11    public string GetNote(ExamType type)
 12    {
 013        var examGrade = ExamGrades.FirstOrDefault(x => x.ExamType == type);
 014        return examGrade != null ? examGrade.Note.Format() : "0.00";
 15    }
 16}