< Summary - Syki

Information
Class: Syki.Back.Features.Disciplines.GetDiscipline.GetDisciplineOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Disciplines/GetDiscipline/GetDisciplineOut.cs
Tag: 56_26538939494
Line coverage
57%
Covered lines: 4
Uncovered lines: 3
Coverable lines: 7
Total lines: 20
Line coverage: 57.1%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
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_Courses()100%11100%
GetExamples()100%210%

File(s)

/home/runner/work/syki/syki/Back/Features/Disciplines/GetDiscipline/GetDisciplineOut.cs

#LineLine coverage
 1namespace Syki.Back.Features.Disciplines.GetDiscipline;
 2
 3public class GetDisciplineOut : IApiDto<GetDisciplineOut>
 4{
 145    public int Id { get; set; }
 146    public string Name { get; set; }
 147    public string Code { get; set; }
 288    public List<GetDisciplineCourseOut> Courses { get; set; } = [];
 9
 10    public static IEnumerable<(string, GetDisciplineOut)> GetExamples() =>
 011    [
 012        ("Exemplo", new() { Id = 1, Name = "Cálculo I", Code = "ABC12345", Courses = [new() { Id = 1, Name = "ADS" }] })
 013    ];
 14}
 15
 16public class GetDisciplineCourseOut
 17{
 18    public int Id { get; set; }
 19    public string Name { get; set; }
 20}