< Summary - Estud

Information
Class: Estud.Back.Domain.Students.EstudStudent
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Domain/Students/EstudStudent.cs
Tag: 114_29044117136
Line coverage
90%
Covered lines: 18
Uncovered lines: 2
Coverable lines: 20
Total lines: 33
Line coverage: 90%
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_UserId()100%210%
get_Name()100%11100%
get_EnrollmentCode()100%11100%
get_Status()100%11100%
get_YieldCoefficient()100%210%
get_User()100%11100%
.ctor()100%11100%
.ctor(...)100%11100%

File(s)

/home/runner/work/syki/syki/Back/Domain/Students/EstudStudent.cs

#LineLine coverage
 1using Estud.Back.Domain.Identity;
 2
 3namespace Estud.Back.Domain.Students;
 4
 5/// <summary>
 6/// Representa um Aluno.
 7/// </summary>
 8public class EstudStudent
 9{
 4410    public int Id { get; set; }
 3411    public int InstitutionId { get; set; }
 012    public int UserId { get; set; }
 5813    public string Name { get; set; }
 4014    public string EnrollmentCode { get; set; }
 4015    public StudentStatus Status { get; set; }
 016    public decimal YieldCoefficient { get; set; }
 17
 4018    public EstudUser? User { get; set; }
 19
 1220    private EstudStudent() {}
 21
 3422    public EstudStudent(
 3423        EstudUser user,
 3424        int institutionId,
 3425        string name
 3426    ) {
 3427        User = user;
 3428        Name = name;
 3429        InstitutionId = institutionId;
 3430        Status = StudentStatus.Enrolled;
 3431        EnrollmentCode = $"{DateTime.Now.Year}{Guid.NewGuid().ToString()[..8].ToUpper()}";
 3432    }
 33}