< Summary

Class:SVETA.Api.Data.DTO.Notification.NotificationResponseWithoutStatusDTO
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/Notification/NotificationResponseDTO.cs
Covered lines:0
Uncovered lines:7
Coverable lines:7
Total lines:77
Line coverage:0% (0 of 7)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_NotificationId()0%100%
get_SenderId()0%100%
get_Subject()0%100%
get_Body()0%100%
get_NotificationsType()0%100%
get_TimeToTurnOff()0%100%
get_CreationDateTime()0%100%

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/Notification/NotificationResponseDTO.cs

#LineLine coverage
 1using System;
 2using System.ComponentModel.DataAnnotations;
 3
 4namespace SVETA.Api.Data.DTO.Notification
 5{
 6    public class NotificationResponseDTO
 7    {
 8        /// <summary>
 9        /// Нужно для поиска Комуникаций
 10        /// </summary>
 11        public long NotificationId { get; set; }
 12        /// <summary>
 13        /// Отправитель коммуникации
 14        /// </summary>
 15        public long SenderId { get; set; }
 16        /// <summary>
 17        /// Заголовок
 18        /// </summary>
 19        [NotNullOrWhiteSpaceValidator]
 20        public string Subject { get; set; }
 21        /// <summary>
 22        /// Тело сообщения
 23        /// </summary>
 24        [NotNullOrWhiteSpaceValidator]
 25        public string Body { get; set; }
 26        /// <summary>
 27        /// Тип коммуникации (Новость\Системная)
 28        /// </summary>
 29        public long NotificationsType { get; set; }
 30        /// <summary>
 31        /// Статус коммуникации
 32        /// </summary>
 33        public long NotificationsStatus { get; set; }
 34        /// <summary>
 35        /// Время жизни коммуникации
 36        /// </summary>
 37        public DateTime? TimeToTurnOff { get; set; }
 38        /// <summary>
 39        /// Время создания коммуникации
 40        /// </summary>
 41        public DateTime CreationDateTime { get; set; }
 42    }
 43
 44    public class NotificationResponseWithoutStatusDTO
 45    {
 46        /// <summary>
 47        /// Нужно для поиска Комуникаций
 48        /// </summary>
 049        public long NotificationId { get; set; }
 50        /// <summary>
 51        /// Отправитель коммуникации
 52        /// </summary>
 053        public long SenderId { get; set; }
 54        /// <summary>
 55        /// Заголовок
 56        /// </summary>
 57        [NotNullOrWhiteSpaceValidator]
 058        public string Subject { get; set; }
 59        /// <summary>
 60        /// Тело сообщения
 61        /// </summary>
 62        [NotNullOrWhiteSpaceValidator]
 063        public string Body { get; set; }
 64        /// <summary>
 65        /// Тип коммуникации (Новость\Системная)
 66        /// </summary>
 067        public long NotificationsType { get; set; }
 68        /// <summary>
 69        /// Время жизни коммуникации
 70        /// </summary>
 071        public DateTime? TimeToTurnOff { get; set; }
 72        /// <summary>
 73        /// Время создания коммуникации
 74        /// </summary>
 075        public DateTime CreationDateTime { get; set; }
 76    }
 77}