< Summary

Information
Class: Syki.Back.Features.Academic.CreateCourse.Course
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CreateCourse/Course.cs
Tag: 22_11348620282
Line coverage
86%
Covered lines: 20
Uncovered lines: 3
Coverable lines: 23
Total lines: 36
Line coverage: 86.9%
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_InstitutionId()100%11100%
get_Name()100%11100%
get_Type()100%11100%
get_Disciplines()100%210%
get_Links()100%210%
get_CourseCurriculums()100%210%
.ctor(...)100%11100%
ToOut()100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/CreateCourse/Course.cs

#LineLine coverage
 1using Syki.Back.Features.Academic.CreateDiscipline;
 2using Syki.Back.Features.Academic.CreateCourseCurriculum;
 3
 4namespace Syki.Back.Features.Academic.CreateCourse;
 5
 6public class Course
 7{
 9748    public Guid Id { get; set; }
 7069    public Guid InstitutionId { get; set; }
 141610    public string Name { get; set; }
 97411    public CourseType Type { get; set; }
 012    public List<Discipline> Disciplines { get; set; }
 013    public List<CourseDiscipline> Links { get; set; }
 014    public List<CourseCurriculum> CourseCurriculums { get; set; }
 15
 70616    public Course(
 70617        Guid institutionId,
 70618        string name,
 70619        CourseType type
 70620    ) {
 70621        Id = Guid.NewGuid();
 70622        InstitutionId = institutionId;
 70623        Name = name;
 70624        Type = type;
 70625    }
 26
 27    public CourseOut ToOut()
 28    {
 26729        return new CourseOut
 26730        {
 26731            Id = Id,
 26732            Name = Name,
 26733            Type = Type,
 26734        };
 35    }
 36}