< Summary

Information
Class: OzonDomains.Models.OrderControlRule
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/OrderControlRule.cs
Line coverage
90%
Covered lines: 10
Uncovered lines: 1
Coverable lines: 11
Total lines: 22
Line coverage: 90.9%
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%11100%
get_Code()100%11100%
get_Name()100%11100%
get_RuleType()100%11100%
get_IsActive()100%11100%
get_Priority()100%11100%
get_TargetAppRoleId()100%11100%
get_TargetAppRole()100%210%
get_ParametersJson()100%11100%
get_CreatedAtUtc()100%11100%
get_UpdatedAtUtc()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/OrderControlRule.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3using OzonDomains.Models.Authorization;
 4
 5namespace OzonDomains.Models;
 6
 7[Table("OrderControlRules")]
 8public class OrderControlRule
 9{
 106110    public int Id { get; set; }
 11
 4512    [Required, MaxLength(80)] public string Code { get; set; } = string.Empty;
 4513    [Required, MaxLength(200)] public string Name { get; set; } = string.Empty;
 110514    [Required, MaxLength(40)] public string RuleType { get; set; } = string.Empty;
 4515    public bool IsActive { get; set; } = true;
 34516    public int Priority { get; set; } = 2;
 32117    public int TargetAppRoleId { get; set; }
 018    public AppRole? TargetAppRole { get; set; }
 4219    [MaxLength(1000)] public string? ParametersJson { get; set; }
 2920    public DateTime CreatedAtUtc { get; set; } = DateTime.UtcNow;
 2921    public DateTime UpdatedAtUtc { get; set; } = DateTime.UtcNow;
 22}