< Summary - Estud

Information
Class: Estud.Back.Domain.Identity.EstudUserRole
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Domain/Identity/EstudUserRole.cs
Tag: 114_29044117136
Line coverage
70%
Covered lines: 14
Uncovered lines: 6
Coverable lines: 20
Total lines: 35
Line coverage: 70%
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_InstitutionId()100%11100%
get_Institution()100%11100%
get_User()100%11100%
get_Role()100%210%
.ctor()100%11100%
.ctor(...)100%11100%
.ctor(...)100%11100%
.ctor(...)100%210%

File(s)

/home/runner/work/syki/syki/Back/Domain/Identity/EstudUserRole.cs

#LineLine coverage
 1using Estud.Back.Domain.Institutions;
 2
 3namespace Estud.Back.Domain.Identity;
 4
 5public class EstudUserRole : IdentityUserRole<int>
 6{
 347    public int InstitutionId { get; set; }
 8
 9369    public Institution? Institution { get; set; }
 97010    public EstudUser? User { get; set; }
 011    public EstudRole? Role { get; set; }
 12
 170813    public EstudUserRole() {}
 14
 93615    public EstudUserRole(Institution institution, EstudUser user, int roleId)
 16    {
 93617        Institution = institution;
 93618        User = user;
 93619        RoleId = roleId;
 93620    }
 21
 3422    public EstudUserRole(int institutionId, EstudUser user, int roleId)
 23    {
 3424        InstitutionId = institutionId;
 3425        User = user;
 3426        RoleId = roleId;
 3427    }
 28
 029    public EstudUserRole(int institutionId, int userId, int roleId)
 30    {
 031        InstitutionId = institutionId;
 032        UserId = userId;
 033        RoleId = roleId;
 034    }
 35}