< Summary

Information
Class: Syki.Shared.StudentExamGradeOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Student/GetStudentExamGrades/StudentExamGradeOut.cs
Tag: 22_11348620282
Line coverage
75%
Covered lines: 6
Uncovered lines: 2
Coverable lines: 8
Total lines: 17
Line coverage: 75%
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_ClassId()100%11100%
get_Period()100%11100%
get_Discipline()100%11100%
get_StudentDisciplineStatus()100%11100%
get_AverageNote()100%11100%
get_ExamGrades()100%11100%
GetNote(...)0%620%

File(s)

/home/runner/work/syki/syki/Shared/Features/Student/GetStudentExamGrades/StudentExamGradeOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class StudentExamGradeOut
 4{
 575    public Guid ClassId { get; set; }
 546    public byte Period { get; set; }
 487    public string Discipline { get; set; }
 428    public StudentDisciplineStatus StudentDisciplineStatus { get; set; }
 489    public decimal AverageNote { get; set; }
 6610    public List<ExamGradeOut> ExamGrades { get; set; }
 11
 12    public string GetNote(ExamType type)
 13    {
 014        var examGrade = ExamGrades.FirstOrDefault(x => x.ExamType == type);
 015        return examGrade != null ? examGrade.Note.Format() : "0.00";
 16    }
 17}