< Summary

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

Metrics

MethodLine coverage Branch coverage
get_data()0%100%
get_totalCount()0%100%
get_totalFilteredCount()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    {
 030        public List<EventResponseDTO> data { get; set; }
 031        public int totalCount { get; set; }
 032        public int totalFilteredCount { get; set; }
 33    }
 34
 35    public class EventResponseDTO
 36    {
 37        public long Id { get; set; }
 38
 39        public DateTime DtCreated { get; set; }
 40
 41        public IdNameDTO User { get; set; }
 42
 43        public int KindId { get; set; }
 44
 45        public string Entity { get; set; }
 46
 47        public Guid RecordGuid { get; set; }
 48
 49        public string ReasonJson { get; set; }
 50    }
 51}