< Summary

Information
Class: OzonOrdersWeb.Authorization.DiscoverFieldsAttribute
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Authorization/DiscoverFieldsAttribute.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 16
Line coverage: 0%
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
.ctor(...)100%210%
get_EntityName()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/Authorization/DiscoverFieldsAttribute.cs

#LineLine coverage
 1namespace OzonOrdersWeb.Authorization;
 2
 3/// <summary>
 4/// Маркирует DTO/ViewModel класс для автоматического обнаружения его полей FieldDiscoveryService.
 5/// </summary>
 6[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
 7public sealed class DiscoverFieldsAttribute : Attribute
 8{
 09    public DiscoverFieldsAttribute(string entityName)
 10    {
 011        EntityName = entityName;
 012    }
 13
 14    /// <summary>Логическое имя сущности в реестре AppField (например, "Order").</summary>
 015    public string EntityName { get; }
 16}