< Summary

Information
Class: Syki.Shared.LessonOut
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Academic/CreateLessons/LessonOut.cs
Tag: 22_11348620282
Line coverage
66%
Covered lines: 6
Uncovered lines: 3
Coverable lines: 9
Total lines: 22
Line coverage: 66.6%
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_Number()100%11100%
get_Date()100%11100%
get_Schedule()100%11100%
get_Status()100%11100%
get_Frequency()100%11100%
Equals(...)0%620%
GetHashCode()100%210%

File(s)

/home/runner/work/syki/syki/Shared/Features/Academic/CreateLessons/LessonOut.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class LessonOut
 4{
 154205    public Guid Id { get; set; }
 153456    public int Number { get; set; }
 153547    public DateOnly Date { get; set; }
 153548    public string Schedule { get; set; }
 153459    public LessonStatus Status { get; set; }
 1534510    public decimal Frequency { get; set; }
 11
 12    public override bool Equals(object? obj)
 13    {
 014        if (obj is null) return false;
 015        return Id == ((LessonOut)obj).Id;
 16    }
 17
 18    public override int GetHashCode()
 19    {
 020        return Id.ToHashCode();
 21    }
 22}