< Summary

Class:SVETA.Api.Data.DTO.AnonymousCache
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/Movements/MovementDTO.cs
Covered lines:1
Uncovered lines:6
Coverable lines:7
Total lines:68
Line coverage:14.2% (1 of 7)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_Id()0%100%
get_Items()0%100%
get_Receiver()0%100%
get_Sender()0%100%
get_AvailableReceiver()100%100%
get_Reason()0%100%
get_CanMerge()0%100%

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/Movements/MovementDTO.cs

#LineLine coverage
 1using SVETA.Api.Data.DTO.Movements;
 2using SVETA.Api.Data.DTO.DepartmentDTO;
 3using System;
 4using System.Collections.Generic;
 5using System.ComponentModel.DataAnnotations.Schema;
 6using WinSolutions.Sveta.Server.Data.DataModel.Entities;
 7using WinSolutions.Sveta.Server.Domain;
 8
 9namespace SVETA.Api.Data.DTO
 10{
 11    public class MovementDTO
 12    {
 13        public long Id { get; set; }
 14        public DateTime CreationDateTime { get; set; }
 15        public long ParentId { get; set; }
 16        public long ChildrenId { get; set; }
 17        public int MovementType { get; set; }
 18        public ContragentShortDTO Customer { get; set; }
 19        public ContragentShortDTO Supplier { get; set; }
 20        public DepartmentShortWithAddressDTO Receiver { get; set; }
 21        public DepartmentShortWithAddressDTO Sender { get; set; }
 22        public decimal PrepaimentPercent { get; set; }
 23        public decimal PrepaimentSum { get; set; }
 24        public DateTime? SupplierTransferDate { get; set; }
 25        public EnumDB_DTO MovementStatus { get; set; }
 26        public int ItemsCount { get; set; }
 27        public string DocumentNumber { get; set; }
 28        public decimal Sum { get; set; }
 29        public decimal SumWithoutVat { get; set; }
 30        public long[] Statuses { get; set; }
 31        public List<MovementAction> Actions { get; set; }
 32        public Guid DemoId { get; set; }
 33        public bool IsDemo { get; set; }
 34        public DateTime InQueueTransferDate { get; set; }
 35        public List<MovementNoteDTO> Notes { get; set; }
 36        public bool WasEdited { get; set; }
 37        public IdNameDTO DeliveryType { get; set; }
 38        public decimal MinOrderSum { get; set; }
 39        public List<DeliveryTypeResponseDto> AllowedDeliveryTypes { get; set; } = new List<DeliveryTypeResponseDto>();
 40        public DateTime ModificationDateTime { get; set; }
 41        public long TotalAttachmentSize { get; set; }
 42    }
 43
 44    public class ActionsDTO
 45    {
 46        public string Caption { get; set; }
 47        public string Action { get; set; }
 48        public string Type { get; set; }
 49        public string Code { get; set; }
 50    }
 51
 52    public class AnonymousMovementMergeDto
 53    {
 54        public int Total { get; set; }
 55        public List<AnonymousCache> Cache { get; set; }
 56    }
 57
 58    public class AnonymousCache
 59    {
 060        public long Id { get; set; }
 061        public List<MovementItemResponseDTO> Items { get; set; }
 062        public DepartmentShortDTO Receiver { get; set; }
 063        public DepartmentShortDTO Sender { get; set; }
 264        public List<DepartmentShortDTO> AvailableReceiver { get; set; }
 065        public string Reason { get; set; }
 066        public bool CanMerge { get; set; }
 67    }
 68}