< Summary

Class:WinSolutions.Sveta.Server.Data.DataModel.Entities.Department
Assembly:WinSolutions.Sveta.Server
File(s):/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/Department.cs
Covered lines:10
Uncovered lines:4
Coverable lines:14
Total lines:84
Line coverage:71.4% (10 of 14)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_Name()100%100%
get_ActualAddress()100%100%
get_PhoneNumber()100%100%
get_Contragent()100%100%
get_UsersDepartments()100%100%
get_Area()100%100%
get_Kpp()100%100%
get_Email()0%100%
get_Kind()100%100%
get_Status()100%100%
get_Cluster()100%100%
get_MovementsAsSender()0%100%
get_MovementsAsReceiver()0%100%
get_ClusterId()0%100%

File(s)

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

#LineLine coverage
 1using System.Collections.Generic;
 2using System.ComponentModel.DataAnnotations;
 3using System.ComponentModel.DataAnnotations.Schema;
 4using WinSolutions.Sveta.Server.Data.DataModel.Kinds;
 5
 6namespace WinSolutions.Sveta.Server.Data.DataModel.Entities
 7{
 8    public class Department : ExternalRecord, ITrackableRecord
 9    {
 10        /// <summary>
 11        /// Наименование
 12        /// </summary>
 13        [Required]
 289514        public string Name { get; set; }
 15
 16        /// <summary>
 17        /// Адрес фактический
 18        /// </summary>
 218619        public Address ActualAddress { get; set; }
 20
 21        /// <summary>
 22        /// Номер телефона ТТ
 23        /// </summary>
 24        [Required]
 168225        public string PhoneNumber { get; set; }
 26
 27        /// <summary>
 28        /// Контрагент
 29        /// </summary>
 30        [Required]
 543731        public Contragent Contragent { get; set; }
 32
 33        /// <summary>
 34        /// Пользователи
 35        /// </summary>
 110536        public List<UserDepartment> UsersDepartments { get; set; }
 37
 38        /// <summary>
 39        /// Площадь кв.м
 40        /// </summary>
 41        [Column(TypeName = "decimal(18,2)")]
 112042        public decimal Area { get; set; }
 43
 44        /// <summary>
 45        /// КПП
 46        /// </summary>
 112147        public string Kpp { get; set; }
 48
 49        /// <summary>
 50        /// Email
 51        /// </summary>
 052        public string Email { get; set; }
 53
 54        /// <summary>
 55        /// Тип подразделения
 56        /// </summary>
 451657        public DepartmentsKind Kind { get; set; }
 58
 59        /// <summary>
 60        /// Статус подразделения
 61        /// </summary>
 168362        public DepartmentsStatus Status { get; set; }
 63
 64        /// <summary>
 65        /// Кластер
 66        /// </summary>
 114967        public Cluster Cluster { get; set; }
 68
 69        /// <summary>
 70        /// Документы, где подразделение является складом-отправителем
 71        /// </summary>
 072        public List<Movement> MovementsAsSender { get; set; }
 73
 74        /// <summary>
 75        /// Документы, где подразделение является магазином-получателем
 76        /// </summary>
 077        public List<Movement> MovementsAsReceiver { get; set; }
 78
 79        /// <summary>
 80        /// Ключ кластера
 81        /// </summary>
 082        public long? ClusterId { get; set; }
 83    }
 84}