< Summary - Syki

Information
Class: Syki.Back.Shared.StudentNoteOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Shared/Features/Student/GetStudentNotes/StudentNoteOut.cs
Tag: 56_26538939494
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 17
Line coverage: 0%
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%210%
get_Period()100%210%
get_Discipline()100%210%
get_StudentDisciplineStatus()100%210%
get_AverageNote()100%210%
get_Notes()100%210%
GetNote(...)0%620%

File(s)

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

#LineLine coverage
 1namespace Syki.Back.Shared;
 2
 3public class StudentNoteOut
 4{
 05    public Guid ClassId { get; set; }
 06    public byte Period { get; set; }
 07    public string Discipline { get; set; }
 08    public StudentDisciplineStatus StudentDisciplineStatus { get; set; }
 09    public decimal AverageNote { get; set; }
 010    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}