< Summary

Information
Class: Syki.Shared.DisciplineOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Academic/CreateDiscipline/DisciplineOut.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 29
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
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_Name()100%11100%
get_Code()100%11100%
get_Period()100%11100%
get_Credits()100%11100%
get_Workload()100%11100%
get_StudentDisciplineStatus()100%11100%
get_Courses()100%11100%
Equals(...)100%22100%
GetHashCode()100%11100%
ToString()100%11100%

File(s)

/home/runner/work/syki/syki/Shared/Features/Academic/CreateDiscipline/DisciplineOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class DisciplineOut
 4{
 222735    public Guid Id { get; set; }
 107586    public string Name { get; set; }
 106997    public string Code { get; set; }
 89258    public byte Period { get; set; }
 89179    public byte Credits { get; set; }
 891710    public ushort Workload { get; set; }
 712911    public StudentDisciplineStatus StudentDisciplineStatus { get; set; }
 1784312    public List<Guid> Courses { get; set; } = [];
 13
 14    public override bool Equals(object? obj)
 15    {
 416        if (obj is null) return false;
 217        return Id == ((DisciplineOut)obj).Id;
 18    }
 19
 20    public override int GetHashCode()
 21    {
 122        return Id.ToHashCode();
 23    }
 24
 25    public override string ToString()
 26    {
 127        return Name;
 28    }
 29}