< Summary

Information
Class: Syki.Shared.TeacherClassesOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Teacher/GetTeacherClasses/TeacherClassesOut.cs
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 22
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_Discipline()100%210%
get_Code()100%210%
get_Period()100%210%
get_Schedules()100%210%
get_SchedulesInline()100%210%
Equals(...)0%620%
GetHashCode()100%210%

File(s)

/home/runner/work/syki/syki/Shared/Features/Teacher/GetTeacherClasses/TeacherClassesOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class TeacherClassesOut
 4{
 05    public Guid Id { get; set; }
 06    public string Discipline { get; set; }
 07    public string Code { get; set; }
 08    public string Period { get; set; }
 09    public List<ScheduleOut> Schedules { get; set; }
 010    public string SchedulesInline { get; set; }
 11
 12    public override bool Equals(object? obj)
 13    {
 014        if (obj is null) return false;
 015        return Id == ((TeacherClassesOut)obj).Id;
 16    }
 17
 18    public override int GetHashCode()
 19    {
 020        return Id.ToHashCode();
 21    }
 22}