< Summary

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

Metrics

MethodLine coverage Branch coverage
get_SupplierDepartment()0%100%
get_MinQuantity()0%100%
get_MaxQuantity()0%100%
get_DateBegin()0%100%
get_DateEnd()0%100%
get_Bids()0%100%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations;
 4using System.ComponentModel.DataAnnotations.Schema;
 5using System.Text;
 6
 7namespace WinSolutions.Sveta.Server.Data.DataModel.Entities
 8{
 9    public class PromoOffer : Promo
 10    {
 11        /// <summary>
 12        /// Подразделение поставщика
 13        /// </summary>
 14        [Required]
 015        public Department SupplierDepartment { get; set; }
 16
 17
 18        /// <summary>
 19        /// Минимальное количество
 20        /// </summary>
 21        [Required]
 22        [Column(TypeName = "decimal(18,2)")]
 023        public decimal MinQuantity { get; set; }
 24
 25        /// <summary>
 26        /// Максимальное количество
 27        /// </summary>
 28        [Column(TypeName = "decimal(18,2)")]
 029        public decimal? MaxQuantity { get; set; }
 30
 31
 32        /// <summary>
 33        /// Дата начала действия предложения
 34        /// </summary>
 35        [Required]
 036        public DateTime DateBegin { get; set; }
 37
 38        /// <summary>
 39        /// Дата окончания действия предложения
 40        /// </summary>
 41        [Required]
 042        public DateTime DateEnd { get; set; }
 43
 044        public virtual List<PromoBid> Bids { get; set; }
 45    }
 46}