< Summary

Class:WinSolutions.Sveta.Server.Data.DataModel.Entities.PriceTrend
Assembly:WinSolutions.Sveta.Server
File(s):/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/PriceTrend.cs
Covered lines:2
Uncovered lines:4
Coverable lines:6
Total lines:42
Line coverage:33.3% (2 of 6)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_DocNumber()0%100%
get_SupplierDepartment()100%100%
get_SupplierDepartmentId()0%100%
get_BeginDate()100%100%
get_EndDate()0%100%
get_PriceTrendDetails()0%100%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations;
 4using System.Text;
 5
 6namespace WinSolutions.Sveta.Server.Data.DataModel.Entities
 7{
 8    public class PriceTrend : ExternalRecord, ITrackableRecord
 9    {
 10        /// <summary>
 11        /// Номер документа
 12        /// </summary>
 13        [Required]
 014        public string DocNumber { get; set; }
 15
 16        /// <summary>
 17        /// Подразделение поставщика
 18        /// </summary>
 19        [Required]
 36820        public Department SupplierDepartment { get; set; }
 21
 022        public long SupplierDepartmentId { get; set; }
 23
 24        /// <summary>
 25        /// Дата начала действия
 26        /// </summary>
 27        [Required]
 154628        public DateTime BeginDate { get; set; }
 29
 30        /// <summary>
 31        /// Дата окончания действия
 32        /// </summary>
 33        [Required]
 034        public DateTime EndDate { get; set; } = new DateTime(2099, 1, 1);
 35
 36        /// <summary>
 37        /// Детали переоценки
 38        /// </summary>
 39        [Required]
 040        public List<PriceTrendDetail> PriceTrendDetails { get; set; }
 41    }
 42}