< Summary

Class:SVETA.Api.Data.DTO.DeliveryTypeOrderRequestDTO
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/DeliveryTypeDto.cs
Covered lines:0
Uncovered lines:1
Coverable lines:1
Total lines:30
Line coverage:0% (0 of 1)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_DeliveryTypeId()0%100%

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/DeliveryTypeDto.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 DeliveryTypeResponseDto : IdNameDTO
 12    {
 13        public DeliveryTypeResponseDto() { }
 14
 15        public DeliveryTypeResponseDto(DeliveryType data)
 16        {
 17            Id = data.Id;
 18            Name = data.Name;
 19            DeliveryCostType = new List<IdNameDTO>();
 20            if (data.DeliveryCostTypes?.Count > 0)
 21                DeliveryCostType.AddRange(data.DeliveryCostTypes.Where(x => !x.IsDeleted && x.RecStateId == (long)Record
 22        }
 23        public List<IdNameDTO> DeliveryCostType { get; set; }
 24    }
 25
 26    public class DeliveryTypeOrderRequestDTO
 27    {
 028        public long DeliveryTypeId { get; set; }
 29    }
 30}

Methods/Properties

get_DeliveryTypeId()