< Summary

Information
Class: Syki.Shared.ClassOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Academic/CreateClass/ClassOut.cs
Tag: 22_11348620282
Line coverage
80%
Covered lines: 12
Uncovered lines: 3
Coverable lines: 15
Total lines: 33
Line coverage: 80%
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_Teacher()100%11100%
get_Period()100%11100%
get_Vacancies()100%11100%
get_Frequency()100%11100%
get_Status()100%11100%
get_Schedules()100%11100%
get_Lessons()100%11100%
get_FillRatio()100%11100%
get_IsSelected()100%11100%
Equals(...)0%620%
GetHashCode()100%210%
op_Implicit(...)100%11100%

File(s)

/home/runner/work/syki/syki/Shared/Features/Academic/CreateClass/ClassOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class ClassOut
 4{
 11485    public Guid Id { get; set; }
 6006    public string Discipline { get; set; }
 6007    public string Teacher { get; set; }
 6008    public string Period { get; set; }
 5999    public int Vacancies { get; set; }
 59810    public decimal Frequency { get; set; }
 60011    public ClassStatus Status { get; set; }
 79612    public List<ScheduleOut> Schedules { get; set; }
 101413    public List<LessonOut> Lessons { get; set; } = [];
 14
 59915    public string FillRatio { get; set; }
 39816    public bool IsSelected { get; set; }
 17
 18    public override bool Equals(object? obj)
 19    {
 020        if (obj is null) return false;
 021        return Id == ((ClassOut)obj).Id;
 22    }
 23
 24    public override int GetHashCode()
 25    {
 026        return Id.ToHashCode();
 27    }
 28
 29    public static implicit operator ClassOut(OneOf<ClassOut, ErrorOut> value)
 30    {
 19031        return value.GetSuccess();
 32    }
 33}