< Summary

Information
Class: Services.Authorization.Dtos.MenuItemDto
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/Authorization/Dtos/MenuItemDto.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 18
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_Code()100%11100%
get_DisplayName()100%11100%
get_Url()100%11100%
get_Icon()100%11100%
get_SortOrder()100%11100%
get_Children()100%11100%
get_HasChildren()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/Authorization/Dtos/MenuItemDto.cs

#LineLine coverage
 1namespace Services.Authorization.Dtos;
 2
 3/// <summary>
 4/// Узел пользовательского меню, сформированный на основе прав доступа.
 5/// </summary>
 6public class MenuItemDto
 7{
 688    public int PageId { get; set; }
 679    public string Code { get; set; } = string.Empty;
 8610    public string DisplayName { get; set; } = string.Empty;
 4011    public string? Url { get; set; }
 3412    public string? Icon { get; set; }
 3413    public int SortOrder { get; set; }
 14
 6015    public List<MenuItemDto> Children { get; set; } = new();
 16
 317    public bool HasChildren => Children.Count > 0;
 18}