< Summary

Information
Class: Syki.Back.Features.Academic.GetCourseOfferings.GetCourseOfferingsService
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Features/Academic/GetCourseOfferings/GetCourseOfferingsService.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 9
Uncovered lines: 0
Coverable lines: 9
Total lines: 16
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
.ctor(...)100%11100%
Get()100%11100%

File(s)

/home/runner/work/syki/syki/Back/Features/Academic/GetCourseOfferings/GetCourseOfferingsService.cs

#LineLine coverage
 1namespace Syki.Back.Features.Academic.GetCourseOfferings;
 2
 23public class GetCourseOfferingsService(SykiDbContext ctx) : IAcademicService
 4{
 5    public async Task<List<CourseOfferingOut>> Get(Guid institutionId)
 6    {
 27        var courseOfferings = await ctx.CourseOfferings.AsNoTracking()
 28            .Include(x => x.Campus)
 29            .Include(x => x.Course)
 210            .Include(x => x.CourseCurriculum)
 211            .Where(c => c.InstitutionId == institutionId)
 212            .ToListAsync();
 13
 414        return courseOfferings.ConvertAll(o => o.ToOut());
 215    }
 16}