< Summary

Information
Class: Syki.Front.Features.Academic.CreateCourseCurriculum.CourseCurriculumDisciplineFillable
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Features/Academic/CreateCourseCurriculum/CourseCurriculumDisciplineFillable.cs
Tag: 22_11348620282
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 26
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_Name()100%210%
get_Period()100%210%
get_Credits()100%210%
get_Workload()100%210%
Equals(...)0%620%
GetHashCode()100%210%
ToString()100%210%

File(s)

/home/runner/work/syki/syki/Front/Features/Academic/CreateCourseCurriculum/CourseCurriculumDisciplineFillable.cs

#LineLine coverage
 1namespace Syki.Front.Features.Academic.CreateCourseCurriculum;
 2
 3public class CourseCurriculumDisciplineFillable
 4{
 05    public Guid Id { get; set; }
 06    public string Name { get; set; }
 07    public byte? Period { get; set; } = 1;
 08    public byte? Credits { get; set; }
 09    public ushort? Workload { get; set; }
 10
 11    public override bool Equals(object? obj)
 12    {
 013        if (obj is null) return false;
 014        return Id == ((CourseCurriculumDisciplineFillable)obj).Id;
 15    }
 16
 17    public override int GetHashCode()
 18    {
 019        return Id.ToHashCode();
 20    }
 21
 22    public override string ToString()
 23    {
 024        return Name;
 25    }
 26}