< Summary

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

Metrics

MethodLine coverage Branch coverage
get_Id()0%100%
get_DtCreated()0%100%
get_User()0%100%
get_KindId()0%100%
get_Entity()0%100%
get_RecordGuid()0%100%
get_ReasonJson()0%100%

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/EventDTO.cs

#LineLine coverage
 1using System;
 2using System.ComponentModel.DataAnnotations;
 3using System.Collections.Generic;
 4using System.Linq;
 5using System.Threading.Tasks;
 6using WinSolutions.Sveta.Server.Data.DataModel.Entities;
 7using WinSolutions.Sveta.Server.Data.DataModel.Kinds;
 8
 9namespace SVETA.Api.Data.DTO
 10{
 11    public class EventRequestDTO
 12    {
 13        [Required]
 14        public long UserId { get; set; }
 15
 16        [Required]
 17        public EventKind Kind { get; set; }
 18
 19        [NotNullOrWhiteSpaceValidator]
 20        public string Entity { get; set; }
 21
 22        [Required]
 23        public Guid RecordGuid { get; set; }
 24
 25        public string ReasonJson { get; set; }
 26    }
 27
 28    public class EventResponseWithCountDTO
 29    {
 30        public List<EventResponseDTO> data { get; set; }
 31        public int totalCount { get; set; }
 32        public int totalFilteredCount { get; set; }
 33    }
 34
 35    public class EventResponseDTO
 36    {
 037        public long Id { get; set; }
 38
 039        public DateTime DtCreated { get; set; }
 40
 041        public IdNameDTO User { get; set; }
 42
 043        public int KindId { get; set; }
 44
 045        public string Entity { get; set; }
 46
 047        public Guid RecordGuid { get; set; }
 48
 049        public string ReasonJson { get; set; }
 50    }
 51}