< Summary

Information
Class: OzonDomains.Models.AccessControl.DataScopeSet
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/AccessControl/DataScopeSet.cs
Line coverage
66%
Covered lines: 4
Uncovered lines: 2
Coverable lines: 6
Total lines: 25
Line coverage: 66.6%
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%210%
get_Name()100%11100%
get_Description()100%210%
get_CreatedAt()100%11100%
get_Items()100%11100%
get_AccessProfiles()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/AccessControl/DataScopeSet.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.Text.Json.Serialization;
 3
 4namespace OzonDomains.Models.AccessControl;
 5
 6public class DataScopeSet
 7{
 08    public int Id { get; set; }
 9
 10    [Required]
 11    [MaxLength(200)]
 12    [Display(Name = "Название")]
 613    public string Name { get; set; } = string.Empty;
 14
 15    [MaxLength(500)]
 16    [Display(Name = "Описание")]
 017    public string? Description { get; set; }
 18
 519    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
 20
 2021    public virtual ICollection<DataScopeSetItem> Items { get; set; } = new List<DataScopeSetItem>();
 22
 23    [JsonIgnore]
 524    public virtual ICollection<AccessProfile> AccessProfiles { get; set; } = new List<AccessProfile>();
 25}