< Summary - Syki

Information
Class: Syki.Shared.StudentNoteOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Student/GetStudentNotes/StudentNoteOut.cs
Tag: 4_16869239191
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_Notes()100%11100%
GetNote(...)0%620%

File(s)

/home/runner/work/syki/syki/Shared/Features/Student/GetStudentNotes/StudentNoteOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class StudentNoteOut
 4{
 965    public Guid ClassId { get; set; }
 1086    public byte Period { get; set; }
 967    public string Discipline { get; set; }
 848    public StudentDisciplineStatus StudentDisciplineStatus { get; set; }
 909    public decimal AverageNote { get; set; }
 11410    public List<StudentClassNoteOut> Notes { get; set; }
 11
 12    public string GetNote(ClassNoteType type)
 13    {
 014        var note = Notes.FirstOrDefault(x => x.Type == type);
 015        return note != null ? note.Note.Format() : "0.00";
 16    }
 17}