< Summary

Class:WinSolutions.Sveta.Server.Data.DataModel.Entities.Incident
Assembly:WinSolutions.Sveta.Server
File(s):/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/Incident.cs
Covered lines:3
Uncovered lines:4
Coverable lines:7
Total lines:56
Line coverage:42.8% (3 of 7)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_DtCreated()0%100%
get_User()100%100%
get_Subject()0%100%
get_Ticket()0%100%
get_Body()0%100%
get_Status()100%100%
get_Kind()100%100%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations;
 4using System.ComponentModel.DataAnnotations.Schema;
 5using System.Text;
 6using WinSolutions.Sveta.Server.Data.DataModel.Kinds;
 7
 8namespace WinSolutions.Sveta.Server.Data.DataModel.Entities
 9{
 10    public class Incident : ExternalRecord, ITrackableRecord
 11    {
 12        /// <summary>
 13        /// Дата/время обращения
 14        /// </summary>
 15        [Required (ErrorMessage ="Не указана дата и время")]
 16        //[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
 017        public DateTime DtCreated { get; set; } = DateTime.UtcNow;
 18
 19        /// <summary>
 20        /// Дата/время обращения
 21        /// </summary>
 22        [Required(ErrorMessage = "Не указан пользователь")]
 323        public User User { get; set; }
 24
 25
 26        /// <summary>
 27        /// Тема обращения
 28        /// </summary>
 029        public string Subject { get; set; }
 30
 31
 32        /// <summary>
 33        /// Ссылка на внешний тикет
 34        /// </summary>
 035        public string Ticket { get; set; }
 36
 37
 38        /// <summary>
 39        /// Текст
 40        /// </summary>
 041        public string Body { get; set; }
 42
 43
 44        /// <summary>
 45        /// Статус инцидента
 46        /// </summary>
 347        public IncidentsStatus Status { get; set; }
 48
 49
 50        /// <summary>
 51        /// Тип инцидента
 52        /// </summary>
 353        public IncidentsKind Kind { get; set; }
 54
 55    }
 56}