< Summary - Syki

Information
Class: Syki.Back.Shared.TeacherClassStudentOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Shared/Features/Teacher/GetTeacherClass/TeacherClassStudentOut.cs
Tag: 56_26538939494
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
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_Id()100%210%
get_Name()100%210%
get_Frequency()100%210%
get_AverageNote()100%210%
get_Notes()100%210%
GetNote(...)0%620%

File(s)

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

#LineLine coverage
 1namespace Syki.Back.Shared;
 2
 3public class TeacherClassStudentOut
 4{
 05    public Guid Id { get; set; }
 06    public string Name { get; set; }
 07    public decimal Frequency { get; set; }
 08    public decimal AverageNote { get; set; }
 09    public List<StudentClassNoteOut> Notes { get; set; } = [];
 10
 11    public string GetNote(ClassNoteType type)
 12    {
 013        var item = Notes.Where(x => x.Type == type).FirstOrDefault();
 14
 015        return item != null ? item.Note.Format() : "-";
 16    }
 17}