< Summary

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

#LineLine coverage
 1namespace Syki.Front.Features.Academic.CreateStudent;
 2
 963public class CreateStudentClient(HttpClient http) : IAcademicClient
 4{
 5    public async Task<OneOf<StudentOut, ErrorOut>> Create(string name, string email, Guid courseOfferingId, string? phon
 6    {
 967        var data = new CreateStudentIn
 968        {
 969            Name = name,
 9610            Email = email,
 9611            PhoneNumber = phoneNumber,
 9612            CourseOfferingId = courseOfferingId,
 9613        };
 14
 9615        var response = await http.PostAsJsonAsync("/academic/students", data);
 16
 9617        return await response.Resolve<StudentOut>();
 9618    }
 19}