< Summary

Information
Class: Services.Authorization.Dtos.PagePermissionDto
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/Authorization/Dtos/PagePermissionDto.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 17
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_PageId()100%11100%
get_PageCode()100%11100%
get_PageDisplayName()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/AppRepository/Authorization/Dtos/PagePermissionDto.cs

#LineLine coverage
 1namespace Services.Authorization.Dtos;
 2
 3/// <summary>
 4/// Итоговые разрешения пользователя на страницу (с учётом всех ролей и override).
 5/// </summary>
 6public class PagePermissionDto
 7{
 298    public int PageId { get; set; }
 429    public string PageCode { get; set; } = string.Empty;
 2910    public string PageDisplayName { get; set; } = string.Empty;
 11
 3112    public bool CanView { get; set; }
 1613    public bool CanCreate { get; set; }
 1714    public bool CanEdit { get; set; }
 1715    public bool CanDelete { get; set; }
 1616    public bool CanExport { get; set; }
 17}