< Summary - Syki

Information
Class: Syki.Back.Features.Disciplines.GetDiscipline.GetDisciplineCourseOut
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Disciplines/GetDiscipline/GetDisciplineOut.cs
Tag: 56_26538939494
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 20
Line coverage: 100%
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%

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{
 5    public int Id { get; set; }
 6    public string Name { get; set; }
 7    public string Code { get; set; }
 8    public List<GetDisciplineCourseOut> Courses { get; set; } = [];
 9
 10    public static IEnumerable<(string, GetDisciplineOut)> GetExamples() =>
 11    [
 12        ("Exemplo", new() { Id = 1, Name = "Cálculo I", Code = "ABC12345", Courses = [new() { Id = 1, Name = "ADS" }] })
 13    ];
 14}
 15
 16public class GetDisciplineCourseOut
 17{
 1218    public int Id { get; set; }
 1619    public string Name { get; set; }
 20}

Methods/Properties

get_Id()
get_Name()