< Summary

Class:SVETA.Api.Data.DTO.DepartmentDTO.DepartmentCategoryRatioRequestDtoPost
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/DepartmentDTO/DepartmentCategoryRatioRequestDTO.cs
Covered lines:0
Uncovered lines:2
Coverable lines:2
Total lines:32
Line coverage:0% (0 of 2)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_CategoryId()0%100%
get_TradeRatio()0%100%

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/DepartmentDTO/DepartmentCategoryRatioRequestDTO.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using SVETA.Api.Validation;
 3
 4namespace SVETA.Api.Data.DTO.DepartmentDTO
 5{
 6    public class DepartmentCategoryRatioRequestDtoPost
 7    {
 8        /// <summary>
 9        /// Id категории товара
 10        /// </summary>
 11        [DigitValidate (CanBeZero = false, CanBeNegative = true)]
 12        [Display(Name = "Идентификатор категории")]
 013        public long CategoryId { get; set; }
 14
 15        /// <summary>
 16        /// Торговый коэффициент
 17        /// </summary>
 18        [DigitValidate]
 19        [Display(Name = "Торговый коэффициент")]
 020        public decimal TradeRatio { get; set; }
 21    }
 22
 23    public class DepartmentCategoryRatioRequestDtoPut
 24    {
 25        /// <summary>
 26        /// Торговый коэффициент
 27        /// </summary>
 28        [DigitValidate]
 29        [Display(Name = "Торговый коэффициент")]
 30        public decimal TradeRatio { get; set; }
 31    }
 32}

Methods/Properties

get_CategoryId()
get_TradeRatio()