< Summary

Information
Class: Syki.Shared.TeacherClassOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Teacher/GetTeacherClass/TeacherClassOut.cs
Tag: 22_11348620282
Line coverage
70%
Covered lines: 7
Uncovered lines: 3
Coverable lines: 10
Total lines: 23
Line coverage: 70%
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_Discipline()100%11100%
get_Code()100%11100%
get_Period()100%11100%
get_Status()100%11100%
get_Lessons()100%11100%
get_Students()100%11100%
Equals(...)0%620%
GetHashCode()100%210%

File(s)

/home/runner/work/syki/syki/Shared/Features/Teacher/GetTeacherClass/TeacherClassOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class TeacherClassOut
 4{
 875    public Guid Id { get; set; }
 896    public string Discipline { get; set; }
 887    public string Code { get; set; }
 888    public string Period { get; set; }
 889    public ClassStatus Status { get; set; }
 15210    public List<LessonOut> Lessons { get; set; } = [];
 16811    public List<TeacherClassStudentOut> Students { get; set; } = [];
 12
 13    public override bool Equals(object? obj)
 14    {
 015        if (obj is null) return false;
 016        return Id == ((TeacherClassesOut)obj).Id;
 17    }
 18
 19    public override int GetHashCode()
 20    {
 021        return Id.ToHashCode();
 22    }
 23}