< Summary

Class:SVETA.Api.Data.DTO.Showcase.ShowcaseListGoodDTO
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/Showcase/ShowcaseListGoodDTO.cs
Covered lines:0
Uncovered lines:45
Coverable lines:45
Total lines:77
Line coverage:0% (0 of 45)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)

Metrics

MethodLine coverage Branch coverage
.ctor(...)0%0%
get_Id()0%100%
get_Category()0%100%
get_Name()0%100%
get_VendorCode()0%100%
get_Photos()0%100%
get_Labels()0%100%
get_MinDeliveryLot()0%100%
get_UnitKind()0%100%
get_Brand()0%100%
get_SubBrand()0%100%
get_Country()0%100%
get_RestQuantity()0%100%
get_MinQuantity()0%100%
get_PickingQuantum()0%100%
get_Price()0%100%
get_OldPrice()0%100%
get_Discount()0%100%
get_LabelColor()0%100%
get_TextColor()0%100%
get_UniqueCode()0%100%
get_Transparency()0%100%

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/Showcase/ShowcaseListGoodDTO.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Threading.Tasks;
 5
 6namespace SVETA.Api.Data.DTO.Showcase
 7{
 8    public class ShowcaseListGoodDTO
 9    {
 010        public ShowcaseListGoodDTO(ShowcaseGoodDTO good)
 011        {
 012            Id = good.Id;
 013            Category = good.Category;
 014            Name = good.Name;
 015            VendorCode = good.VendorCode;
 016            Photos = good.Photos.Select(x => new ShowcasePhotoDTO { PreviewUrl = x.PreviewUrl , PreviewHeight = x.Previe
 017            MinDeliveryLot = good.MinDeliveryLot;
 018            UnitKind = good.UnitKind;
 019            Brand = good.Brand;
 020            SubBrand = good.SubBrand;
 021            Country = good.Country;
 022            RestQuantity = good.RestQuantity;
 023            MinQuantity = good.MinQuantity;
 024            PickingQuantum = good.PickingQuantum;
 025            Price = good.Price;
 026            OldPrice = good.OldPrice;
 027            Discount = good.Discount;
 028            LabelColor = good.LabelColor;
 029            TextColor = good.TextColor;
 030            UniqueCode = good.UniqueCode;
 031            Transparency = good.Transparency;
 032            Labels = good.Labels;
 033        }
 34
 035        public long Id { get; set; }
 36
 037        public CategoryForFeedDTO Category { get; set; }
 38
 039        public string Name { get; set; }
 40
 041        public string VendorCode { get; set; }
 42
 043        public List<ShowcasePhotoDTO> Photos { get; set; }
 44
 045        public List<ShowcaseGoodLabelDTO> Labels { get; set; }
 46
 047        public decimal MinDeliveryLot { get; set; }
 48
 049        public EnumDB_DTO UnitKind { get; set; }
 50
 051        public IdNameDTO Brand { get; set; }
 52
 053        public IdNameDTO SubBrand { get; set; }
 54
 055        public IdNameDTO Country { get; set; }
 56
 057        public decimal RestQuantity { get; set; }
 58
 059        public decimal MinQuantity { get; set; }
 60
 061        public decimal PickingQuantum { get; set; }
 62
 063        public decimal Price { get; set; }
 64
 065        public decimal? OldPrice { get; set; }
 66
 067        public int? Discount { get; set; }
 68
 069        public string LabelColor { get; set; }
 70
 071        public string TextColor { get; set; }
 72
 073        public string UniqueCode { get; set; }
 74
 075        public decimal Transparency { get; set; }
 76    }
 77}