< Summary

Information
Class: TreeGrouping.Application.DbService.Models.CategoryModel
Assembly: TreeGrouping.Application
File(s): /home/runner/work/Studio2Prod/Studio2Prod/TreeGrouping.Application/DbService/Models/CategoryModel.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 18
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
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_ParentId()100%11100%
get_Name()100%11100%
get_CatChar()100%11100%
get_Translation()100%11100%
get_Children()100%11100%
get_ParentName()100%11100%
get_IsFiltred()100%11100%
get_LinkId()100%11100%
get_Links()100%11100%
get_DisplayId()100%22100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/TreeGrouping.Application/DbService/Models/CategoryModel.cs

#LineLine coverage
 1
 2
 3namespace TreeGrouping.Application.DbService.Models;
 4
 5public class CategoryModel
 6{
 1787    public int Id { get; set; }
 768    public int? ParentId { get; set; }
 1349    public string Name { get; set; }
 2510    public string CatChar  { get; set; }
 2011    public string Translation  { get; set; }
 10512    public List<CategoryModel> Children { get; set; } = new();
 2913    public string? ParentName { get; set; }
 6414    public bool IsFiltred { get; set; } = false;
 2015    public int LinkId { get; set; }
 10916    public List<Link> Links { get; set; } = new List<Link>();
 217    public string DisplayId => CatChar != null ? CatChar  : Id.ToString();
 18}