< Summary

Class:WinSolutions.Sveta.Server.Data.DataModel.Entities.Notification
Assembly:WinSolutions.Sveta.Server
File(s):/opt/dev/sveta_api_build/WinSolutions.Sveta.Server/Data/DataModel/Entities/Notification.cs
Covered lines:2
Uncovered lines:3
Coverable lines:5
Total lines:38
Line coverage:40% (2 of 5)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_User()100%100%
get_Subject()0%100%
get_Body()0%100%
get_NotificationsType()100%100%
get_TimeToTurnOff()0%100%

File(s)

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

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.ComponentModel.DataAnnotations;
 4using System.Text;
 5using WinSolutions.Sveta.Server.Data.DataModel.Kinds;
 6
 7namespace WinSolutions.Sveta.Server.Data.DataModel.Entities
 8{
 9    public class Notification : ExternalRecord, ITrackableRecord
 10    {
 11        /// <summary>
 12        /// Пользователь
 13        /// </summary>
 149014        [Required] public User User { get; set; }
 15
 16        /// <summary>
 17        /// Тема
 18        /// </summary>
 019        [Required] public string Subject { get; set; }
 20
 21        /// <summary>
 22        /// Сообщение
 23        /// </summary>
 024        [Required] public string Body { get; set; }
 25
 26        /// <summary>
 27        /// Тип комуникации
 28        /// </summary>
 29       /* [Obsolete]
 30        public int Type { get; set; }*/
 149031        [Required] public NotificationsType NotificationsType { get; set; }
 32        /// <summary>
 33        /// Время жизни коммуникации
 34        /// </summary>
 035        public DateTime TimeToTurnOff { get; set; }
 36
 37    }
 38}