< Summary

Information
Class: Syki.Shared.GetAcademicClassOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Academic/GetAcademicClass/GetAcademicClassOut.cs
Tag: 22_11348620282
Line coverage
84%
Covered lines: 16
Uncovered lines: 3
Coverable lines: 19
Total lines: 36
Line coverage: 84.2%
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_Teacher()100%11100%
get_Period()100%11100%
get_Vacancies()100%11100%
get_Status()100%11100%
get_Schedules()100%11100%
get_Lessons()100%11100%
get_Students()100%11100%
get_SchedulesInline()100%11100%
get_FillRatio()100%11100%
get_Workload()100%11100%
get_Progress()100%11100%
get_Frequency()100%11100%
Equals(...)0%620%
GetHashCode()100%210%
op_Implicit(...)100%11100%

File(s)

/home/runner/work/syki/syki/Shared/Features/Academic/GetAcademicClass/GetAcademicClassOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class GetAcademicClassOut
 4{
 275    public Guid Id { get; set; }
 286    public string Discipline { get; set; }
 277    public string Code { get; set; }
 278    public string Teacher { get; set; }
 279    public string Period { get; set; }
 2710    public int Vacancies { get; set; }
 2811    public ClassStatus Status { get; set; }
 3612    public List<ScheduleOut> Schedules { get; set; }
 6013    public List<LessonOut> Lessons { get; set; } = [];
 4514    public List<AcademicClassStudentOut> Students { get; set; } = [];
 2715    public string SchedulesInline { get; set; }
 2816    public string FillRatio { get; set; }
 2917    public string Workload { get; set; }
 2718    public string Progress { get; set; }
 2719    public decimal Frequency { get; set; }
 20
 21    public override bool Equals(object? obj)
 22    {
 023        if (obj is null) return false;
 024        return Id == ((GetAcademicClassOut)obj).Id;
 25    }
 26
 27    public override int GetHashCode()
 28    {
 029        return Id.ToHashCode();
 30    }
 31
 32    public static implicit operator GetAcademicClassOut(OneOf<GetAcademicClassOut, ErrorOut> value)
 33    {
 934        return value.GetSuccess();
 35    }
 36}