< Summary

Information
Class: OzonDomains.Models.ClientStatus
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/ClientStatus.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 26
Line coverage: 100%
Branch coverage
100%
Covered branches: 4
Total branches: 4
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_Name()100%11100%
get_ClientTypeId()100%11100%
get_ClientType()100%22100%
set_ClientType(...)100%22100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3using OzonDomains;
 4
 5namespace OzonDomains.Models
 6{
 7    [Table("ClientStatuses")]
 8    public class ClientStatus : BaseStatus
 9    {
 70410        public int Id { get; set; }
 11
 12        [StringLength(200)]
 13        [Display(Name = "Статус клиента")]
 163514        public string Name { get; set; } = string.Empty;
 15
 57316        [Display(Name = "Тип клиента")] public int? ClientTypeId { get; set; }
 17
 18        [NotMapped]
 19        [Display(Name = "Тип клиента")]
 20        public ClientType? ClientType
 21        {
 722            get => ClientTypeId.HasValue ? (ClientType?)ClientTypeId.Value : null;
 423            set => ClientTypeId = value.HasValue ? (int?)value.Value : null;
 24        }
 25    }
 26}