< Summary

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

Metrics

MethodLine coverage Branch coverage
get_UserId()0%100%
get_Kind()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]
 014        public long UserId { get; set; }
 15
 16        [Required]
 017        public EventKind Kind { get; set; }
 18
 19        [NotNullOrWhiteSpaceValidator]
 020        public string Entity { get; set; }
 21
 22        [Required]
 023        public Guid RecordGuid { get; set; }
 24
 025        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    {
 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}