< Summary

Information
Class: Syki.Back.Features.Academic.CreateCourseOffering.CourseOffering
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/CreateCourseOffering/CourseOffering.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 36
Uncovered lines: 0
Coverable lines: 36
Total lines: 50
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_InstitutionId()100%11100%
get_CampusId()100%11100%
get_Campus()100%11100%
get_CourseId()100%11100%
get_Course()100%11100%
get_CourseCurriculumId()100%11100%
get_CourseCurriculum()100%11100%
get_Period()100%11100%
get_Shift()100%11100%
.ctor(...)100%11100%
ToOut()100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/CreateCourseOffering/CourseOffering.cs

#LineLine coverage
 1using Syki.Back.Features.Academic.CreateCourse;
 2using Syki.Back.Features.Academic.CreateCampus;
 3using Syki.Back.Features.Academic.CreateCourseCurriculum;
 4
 5namespace Syki.Back.Features.Academic.CreateCourseOffering;
 6
 7public class CourseOffering
 8{
 8429    public Guid Id { get; set; }
 42210    public Guid InstitutionId { get; set; }
 42211    public Guid CampusId { get; set; }
 21312    public Campus Campus { get; set; }
 42213    public Guid CourseId { get; set; }
 21714    public Course Course { get; set; }
 63415    public Guid CourseCurriculumId { get; set; }
 21316    public CourseCurriculum CourseCurriculum { get; set; }
 63417    public string Period { get; set; }
 63418    public Shift Shift { get; set; }
 19
 42220    public CourseOffering(
 42221        Guid institutionId,
 42222        Guid campusId,
 42223        Guid courseId,
 42224        Guid courseCurriculumId,
 42225        string period,
 42226        Shift shift
 42227    ) {
 42228        Id = Guid.NewGuid();
 42229        InstitutionId = institutionId;
 42230        CampusId = campusId;
 42231        CourseId = courseId;
 42232        CourseCurriculumId = courseCurriculumId;
 42233        Period = period;
 42234        Shift = shift;
 42235    }
 36
 37    public CourseOfferingOut ToOut()
 38    {
 21139        return new CourseOfferingOut
 21140        {
 21141            Id = Id,
 21142            Campus = Campus.Name,
 21143            Course = Course.Name,
 21144            CourseCurriculumId = CourseCurriculumId,
 21145            CourseCurriculum = CourseCurriculum.Name,
 21146            Period = Period,
 21147            Shift = Shift,
 21148        };
 49    }
 50}