< Summary - Estud

Information
Class: Estud.Back.Domain.Identity.EstudRole
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Domain/Identity/EstudRole.cs
Tag: 114_29044117136
Line coverage
100%
Covered lines: 20
Uncovered lines: 0
Coverable lines: 20
Total lines: 32
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
get_OwnerId()100%11100%
get_Description()100%11100%
get_BaseType()100%11100%
get_Permissions()100%11100%
.ctor()100%11100%
.ctor(...)100%11100%
IsSubsetOf(...)100%11100%

File(s)

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

#LineLine coverage
 1namespace Estud.Back.Domain.Identity;
 2
 3public class EstudRole : IdentityRole<int>
 4{
 10045    public int? OwnerId { get; set; }
 10146    public string Description { get; set; }
 18687    public UserType BaseType { get; set; }
 18868    public List<int> Permissions { get; set; }
 9
 370810    public EstudRole() { }
 11
 1612    public EstudRole(
 1613        int ownerId,
 1614        string name,
 1615        string description,
 1616        UserType baseType,
 1617        List<int> permissions)
 18    {
 1619        OwnerId = ownerId;
 1620        Name = name;
 1621        NormalizedName = name.ToUpper();
 1622        Description = description;
 1623        BaseType = baseType;
 1624        Permissions = permissions;
 1625        ConcurrencyStamp = Guid.NewGuid().ToString();
 1626    }
 27
 28    public bool IsSubsetOf(List<int> permissions)
 29    {
 1830        return Permissions.IsSubsetOf(permissions);
 31    }
 32}