< Summary

Information
Class: Syki.Shared.CreateStudentIn
Assembly: Shared
File(s): /home/runner/work/syki/syki/Shared/Features/Academic/CreateStudent/CreateStudentIn.cs
Tag: 22_11348620282
Line coverage
40%
Covered lines: 4
Uncovered lines: 6
Coverable lines: 10
Total lines: 19
Line coverage: 40%
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_Name()100%11100%
get_Email()100%11100%
get_CourseOfferingId()100%11100%
get_PhoneNumber()100%11100%
Seed(...)100%210%

File(s)

/home/runner/work/syki/syki/Shared/Features/Academic/CreateStudent/CreateStudentIn.cs

#LineLine coverage
 1namespace Syki.Shared;
 2
 3public class CreateStudentIn
 4{
 5565    public string Name { get; set; }
 4796    public string Email { get; set; }
 5577    public Guid CourseOfferingId { get; set; }
 4798    public string? PhoneNumber { get; set; }
 9
 10    public static CreateStudentIn Seed(string name, Guid courseOfferingId)
 11    {
 012        return new()
 013        {
 014            Name = name,
 015            CourseOfferingId = courseOfferingId,
 016            Email = $"aluno.{Guid.NewGuid().ToString().OnlyNumbers()[..8]}@syki.seed.com"
 017        };
 18    }
 19}