< Summary

Information
Class: OzonRepositories.Data.Bitrix.PriceHistory
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BitrixModels/PriceHistory.cs
Line coverage
77%
Covered lines: 7
Uncovered lines: 2
Coverable lines: 9
Total lines: 30
Line coverage: 77.7%
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_BitrixId()100%11100%
get_Article()100%11100%
get_CreateDateTime()100%11100%
get_PriceValue()100%11100%
get_RegistrationPrice()100%11100%
get_ValueSource()100%11100%
get_Author()100%11100%
get_Currency()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BitrixModels/PriceHistory.cs

#LineLine coverage
 1namespace OzonRepositories.Data.Bitrix;
 2
 3using System;
 4using System.ComponentModel.DataAnnotations;
 5
 6    public class PriceHistory
 7    {
 08        public int Id { get; set; }
 9
 10        [Required(ErrorMessage = "BitrixId обязателен")]
 111        public int BitrixId { get; set; }
 12
 13        [Required(ErrorMessage = "Артикул обязателен")]
 114        public string Article { get; set; } = null!;
 15
 116        public DateTime CreateDateTime { get; set; }
 17
 18        [Required(ErrorMessage = "Цена обязательна")]
 19        [Range(0.01, double.MaxValue, ErrorMessage = "Цена должна быть больше 0")]
 120        public decimal PriceValue { get; set; }
 21
 22        [Range(0.0, double.MaxValue, ErrorMessage = "Registration Price должна быть >= 0")]
 123        public decimal RegistrationPrice { get; set; }
 24
 125        public string? ValueSource { get; set; }
 26
 127        public string? Author { get; set; }
 28
 029        public string? Currency { get; set; }
 30    }