< Summary

Information
Class: OzonDomains.Models.Authorization.RolePagePermission
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/Authorization/RolePagePermission.cs
Line coverage
80%
Covered lines: 8
Uncovered lines: 2
Coverable lines: 10
Total lines: 21
Line coverage: 80%
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%210%
get_AppRoleId()100%11100%
get_AppRole()100%210%
get_AppPageId()100%11100%
get_AppPage()100%11100%
get_CanView()100%11100%
get_CanCreate()100%11100%
get_CanEdit()100%11100%
get_CanDelete()100%11100%
get_CanExport()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/Authorization/RolePagePermission.cs

#LineLine coverage
 1namespace OzonDomains.Models.Authorization;
 2
 3/// <summary>
 4/// Разрешения роли на конкретную страницу.
 5/// </summary>
 6public class RolePagePermission
 7{
 08    public int Id { get; set; }
 9
 1010    public int AppRoleId { get; set; }
 011    public virtual AppRole AppRole { get; set; } = null!;
 12
 1913    public int AppPageId { get; set; }
 1614    public virtual AppPage AppPage { get; set; } = null!;
 15
 1816    public bool CanView { get; set; }
 1017    public bool CanCreate { get; set; }
 1318    public bool CanEdit { get; set; }
 1119    public bool CanDelete { get; set; }
 1120    public bool CanExport { get; set; }
 21}