< Summary - Estud

Information
Class: Estud.Back.Auth.Permissions.EstudPermission
Assembly: Back
File(s): /home/runner/work/syki/syki/Back/Auth/Permissions/EstudPermission.cs
Tag: 114_29044117136
Line coverage
94%
Covered lines: 17
Uncovered lines: 1
Coverable lines: 18
Total lines: 29
Line coverage: 94.4%
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_Name()100%11100%
get_Description()100%11100%
get_Group()100%11100%
get_AllowedTypes()100%11100%
.ctor()100%210%
.ctor(...)100%11100%

File(s)

/home/runner/work/syki/syki/Back/Auth/Permissions/EstudPermission.cs

#LineLine coverage
 1namespace Estud.Back.Auth.Permissions;
 2
 3/// <summary>
 4/// Representa uma permissão dentro do sistema.
 5/// </summary>
 6public class EstudPermission
 7{
 9468    public int Id { get; set; }
 909    public string Name { get; set; }
 3010    public string Description { get; set; }
 6011    public PermissionGroup Group { get; set; }
 12012    public List<UserType> AllowedTypes { get; set; }
 13
 014    public EstudPermission() { }
 15
 3016    public EstudPermission(
 3017        PermissionGroup group,
 3018        int id,
 3019        string name,
 3020        string description,
 3021        List<UserType> allowedTypes)
 22    {
 3023        Group = group;
 3024        Id = id;
 3025        Name = name;
 3026        Description = description;
 3027        AllowedTypes = allowedTypes;
 3028    }
 29}