< Summary

Class:WinSolutions.Sveta.Server.Data.DataModel.Entities.DepartmentGoodSetting
Assembly:WinSolutions.Sveta.Server
File(s):/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/DepartmentGoodsSetting.cs
Covered lines:4
Uncovered lines:5
Coverable lines:9
Total lines:56
Line coverage:44.4% (4 of 9)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_Good()100%100%
get_GoodId()0%100%
get_Department()0%100%
get_DepartmentId()0%100%
get_MinQuantity()100%100%
get_PickingQuantum()100%100%
get_GoodSettingsLabels()0%100%
get_VendorCode()0%100%
get_ShowcaseVisible()100%100%

File(s)

/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/DepartmentGoodsSetting.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 DepartmentGoodSetting : ExternalRecord, ITrackableRecord
 10    {
 11        /// <summary>
 12        /// Товар
 13        /// </summary>
 14        [Required]
 17215        public Good Good { get; set; }
 16
 017        public long GoodId { get; set; }
 18
 19        /// <summary>
 20        /// Подразделение
 21        /// </summary>
 22        [Required]
 023        public Department Department { get; set; }
 24
 025        public long DepartmentId { get; set; }
 26
 27        /// <summary>
 28        /// Мин. партия поставки
 29        /// </summary>
 30        [Required]
 31        [Column(TypeName = "decimal(18,2)")]
 27532        public decimal MinQuantity { get; set; }
 33
 34        /// <summary>
 35        /// Квант поставки
 36        /// </summary>
 37        [Required]
 38        [Column(TypeName = "decimal(18,2)")]
 27539        public decimal PickingQuantum { get; set; }
 40
 41        /// <summary>
 42        /// Ярлыки
 43        /// </summary>
 044        public List<GoodSettingsLabel> GoodSettingsLabels { get; set; }
 45
 46        /// <summary>
 47        /// Код товара
 48        /// </summary>
 049        public string VendorCode { get; set; }
 50
 51        /// <summary>
 52        /// Видимость на витрине
 53        /// </summary>
 1154        public bool ShowcaseVisible { get; set; }
 55    }
 56}