< Summary

Information
Class: Services.Authorization.Dtos.FieldPermissionDto
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/Authorization/Dtos/FieldPermissionDto.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
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_FieldId()100%11100%
get_EntityName()100%11100%
get_FieldName()100%11100%
get_FieldDisplayName()100%11100%
get_FieldType()100%11100%
get_CanRead()100%11100%
get_CanWrite()100%11100%

File(s)

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

#LineLine coverage
 1using OzonDomains.Models.Authorization.Enums;
 2
 3namespace Services.Authorization.Dtos;
 4
 5/// <summary>
 6/// Итоговые разрешения пользователя на поле сущности.
 7/// </summary>
 8public class FieldPermissionDto
 9{
 2410    public int FieldId { get; set; }
 3411    public string EntityName { get; set; } = string.Empty;
 3612    public string FieldName { get; set; } = string.Empty;
 2613    public string FieldDisplayName { get; set; } = string.Empty;
 1314    public FieldType FieldType { get; set; }
 1915    public bool CanRead { get; set; }
 1916    public bool CanWrite { get; set; }
 17}