< Summary

Class:WinSolutions.Sveta.Server.Data.DataModel.Entities.Good
Assembly:WinSolutions.Sveta.Server
File(s):/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/Good.cs
Covered lines:11
Uncovered lines:20
Coverable lines:31
Total lines:199
Line coverage:35.4% (11 of 31)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_Category()100%100%
get_DefaultBarCode()100%100%
get_Barcodes()0%100%
get_GoodBarcodes()100%100%
get_Name()100%100%
get_VendorCode()0%100%
get_Photos()100%100%
get_Manufacturer()0%100%
get_Supplier()0%100%
get_MinDeliveryLot()0%100%
get_ExpirationDays()0%100%
get_Weight()0%100%
get_Width()0%100%
get_Height()0%100%
get_Thickness()0%100%
get_VatsKind()100%100%
get_CustomDeclarationNumber()0%100%
get_UnitsKind()100%100%
get_Country()0%100%
get_ConformityCertNumber()0%100%
get_GroupPackNesting()0%100%
get_GroupPackWidth()0%100%
get_GroupPackHeight()0%100%
get_GroupPackThickness()0%100%
get_PalletNesting()0%100%
get_Brand()100%100%
get_SubBrand()100%100%
get_Rests()0%100%
get_DepartmentGoodSettings()100%100%
get_Prices()0%100%
get_UniqueCode()100%100%

File(s)

/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/Good.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 Good : ExternalRecord, ITrackableRecord
 9    {
 10        /// <summary>
 11        /// Категория
 12        /// </summary>
 13        [Required]
 71714        public Category Category { get; set; }
 15
 16        /// <summary>
 17        /// Устарело - Штрихкод - оставлено для совместимости
 18        /// </summary>
 19        [Obsolete]
 52520        public BarCode DefaultBarCode { get; set; }
 21
 22        /// <summary>
 23        /// Устарело - Дополнительные штрихкоды - оставлено для совместимости
 24        /// </summary>
 25        [Obsolete]
 026        public List<BarCode> Barcodes { get; set; }
 27        /// <summary>
 28        /// Штрихкоды
 29        /// </summary>
 8830        public List<GoodBarcode> GoodBarcodes { get; set; }
 31
 32        /// <summary>
 33        /// Наименование товара
 34        /// </summary>
 35        [Required]
 46536        public string Name { get; set; }
 37
 38        /// <summary>
 39        /// Артикул - устарело. Актуальный вендор код хранится в сеттингах. Использовать расширение GetActualVendorCode 
 40        /// </summary>
 41        //[Required]
 42        [Obsolete]
 043        public string VendorCode { get; set; }
 44
 45        /// <summary>
 46        /// Фото
 47        /// </summary>
 53348        public List<Photo> Photos { get; set; }
 49
 50
 51        /// <summary>
 52        /// Производитель
 53        /// </summary>
 054        public Contragent Manufacturer { get; set; }
 55
 56
 57        /// <summary>
 58        /// Поставщик
 59        /// </summary>
 060        public Contragent Supplier { get; set; }
 61
 62
 63        /// <summary>
 64        /// Мин. партия поставки
 65        /// </summary>
 66        [Required]
 67        [Column(TypeName = "decimal(18,2)")]
 068        public decimal MinDeliveryLot { get; set; }
 69
 70
 71        /// <summary>
 72        /// Срок годности (дни)
 73        /// </summary>
 74        [Required]
 075        public int ExpirationDays { get; set; }
 76
 77        /// <summary>
 78        /// Вес (кг)
 79        /// </summary>
 80        [Required]
 81        [Column(TypeName = "decimal(18,2)")]
 082        public decimal Weight { get; set; }
 83
 84
 85        /// <summary>
 86        /// Ширина (см)
 87        /// </summary>
 88        [Required]
 89        [Column(TypeName = "decimal(18,2)")]
 090        public decimal Width { get; set; }
 91
 92
 93        /// <summary>
 94        ///Высота (см)
 95        /// </summary>
 96        [Required]
 97        [Column(TypeName = "decimal(18,2)")]
 098        public decimal Height { get; set; }
 99
 100
 101        /// <summary>
 102        ///Толщина (см)
 103        /// </summary>
 104        [Required]
 105        [Column(TypeName = "decimal(18,2)")]
 0106        public decimal Thickness { get; set; }
 107
 108        /// <summary>
 109        ///Ставка НДС
 110        /// </summary>
 111        /*   [Required]
 112           [Obsolete]
 113           public VatKind Vat { get; set; }*/
 114        [Required]
 692115        public VatsKind VatsKind { get; set; }
 116
 117        /// <summary>
 118        ///Номер таможенной декларации
 119        /// </summary>
 120        [Required]
 0121        public string CustomDeclarationNumber { get; set; }
 122
 123        /// <summary>
 124        ///Единица измерения (ОКЕИ)
 125        /// </summary>
 126        /*[Required]
 127        [Obsolete]
 128        public UnitKind UnitKind { get; set; }*/
 129        [Required]
 562130        public UnitsKind UnitsKind { get; set; }
 131
 132        /// <summary>
 133        ///Страна
 134        /// </summary>
 0135        public Country Country { get; set; }
 136
 137        /// <summary>
 138        ///Номер сертификата соответствия
 139        /// </summary>
 140        [Required]
 0141        public string ConformityCertNumber { get; set; }
 142
 143
 144        /// <summary>
 145        ///Вложенность в групповую упаковку
 146        /// </summary>
 147        [Required]
 0148        public int GroupPackNesting { get; set; }
 149
 150
 151        /// <summary>
 152        ///Ширина групповой упаковки, см
 153        /// </summary>
 154        [Required]
 155        [Column(TypeName = "decimal(18,2)")]
 0156        public decimal GroupPackWidth { get; set; }
 157
 158        /// <summary>
 159        ///Высота групповой упаковки, см
 160        /// </summary>
 161        [Required]
 162        [Column(TypeName = "decimal(18,2)")]
 0163        public decimal GroupPackHeight { get; set; }
 164        /// <summary>
 165        ///Толщина групповой упаковки, см
 166        /// </summary>
 167        [Required]
 168        [Column(TypeName = "decimal(18,2)")]
 0169        public decimal GroupPackThickness { get; set; }
 170
 171        /// <summary>
 172        ///Вложенность в поддон
 173        /// </summary>
 174        [Required]
 0175        public int PalletNesting { get; set; }
 176
 177        /// <summary>
 178        ///Бренд
 179        /// </summary>
 117180        public Brand Brand { get; set; }
 181
 182        //Нужен?
 183        /// <summary>
 184        ///Суббренд
 185        /// </summary>
 20186        public Brand SubBrand { get; set; }
 187
 188        /// <summary>
 189        /// Остатки на складе
 190        /// </summary>
 0191        public List<Rest> Rests { get; set; }
 192
 398193        public List<DepartmentGoodSetting> DepartmentGoodSettings { get; set; }
 194
 0195        public List<PriceTrendDetail> Prices { get; set; }
 196
 535197        public string UniqueCode { get; set; }
 198    }
 199}