< Summary

Information
Class: Syki.Front.Features.Academic.CreateCourseCurriculum.CreateCourseCurriculumClient
Assembly: Front
File(s): /home/runner/work/syki/syki/Front/Features/Academic/CreateCourseCurriculum/CreateCourseCurriculumClient.cs
Tag: 22_11348620282
Line coverage
100%
Covered lines: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 18
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%
Create()100%11100%

File(s)

/home/runner/work/syki/syki/Front/Features/Academic/CreateCourseCurriculum/CreateCourseCurriculumClient.cs

#LineLine coverage
 1namespace Syki.Front.Features.Academic.CreateCourseCurriculum;
 2
 2273public class CreateCourseCurriculumClient(HttpClient http) : IAcademicClient
 4{
 5    public async Task<OneOf<CourseCurriculumOut, ErrorOut>> Create(string name, Guid courseId, List<CreateCourseCurricul
 6    {
 2277        var data = new CreateCourseCurriculumIn
 2278        {
 2279            Name = name,
 22710            CourseId = courseId,
 22711            Disciplines = disciplines,
 22712        };
 13
 22714        var response = await http.PostAsJsonAsync("/academic/course-curriculums", data);
 15
 22716        return await response.Resolve<CourseCurriculumOut>();
 22717    }
 18}