< Summary

Class:WinSolutions.Sveta.Server.Data.DataModel.Entities.DiscountColor
Assembly:WinSolutions.Sveta.Server
File(s):/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/DiscountColor.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:35
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_DiscountLevel()100%100%
get_LabelColor()100%100%
get_TextColor()100%100%
get_Transparency()100%100%

File(s)

/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/DiscountColor.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations;
 4using System.ComponentModel.DataAnnotations.Schema;
 5
 6namespace WinSolutions.Sveta.Server.Data.DataModel.Entities
 7{
 8    public class DiscountColor : ExternalRecord, ITrackableRecord
 9    {
 10        /// <summary>
 11        /// Уровень скидки
 12        /// </summary>
 13        [Required]
 38014        public int DiscountLevel { get; set; }
 15
 16        /// <summary>
 17        /// Цвет ярлыка скидки (Hex)
 18        /// </summary>
 19        [Required]
 38020        public string LabelColor { get; set; }
 21
 22        /// <summary>
 23        /// Цвет текста скидки (Hex)
 24        /// </summary>
 25        [Required]
 38026        public string TextColor { get; set; }
 27
 28        /// <summary>
 29        /// Прозрачность ярлыка скидки
 30        /// </summary>
 31        [Required]
 32        [Column(TypeName = "decimal(18,2)")]
 38033        public decimal Transparency { get; set; }
 34    }
 35}