< Summary

Class:SVETA.Api.Data.DTO.PromoOfferJournal.PromoBidOutput
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/PromoOfferJournal/PromoBidOutput.cs
Covered lines:0
Uncovered lines:23
Coverable lines:23
Total lines:55
Line coverage:0% (0 of 23)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
.ctor(...)0%100%
get_Id()0%100%
get_PromoOfferId()0%100%
get_DepartmentId()0%100%
get_DepartmentName()0%100%
get_GoodId()0%100%
get_GoodName()0%100%
get_Sum()0%100%
get_CreationDate()0%100%
get_DateEnd()0%100%
get_UniqueCode()0%100%

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/PromoOfferJournal/PromoBidOutput.cs

#LineLine coverage
 1using System;
 2using System.ComponentModel.DataAnnotations;
 3using System.Runtime.Serialization;
 4using WinSolutions.Sveta.Server.Data.DataModel.Entities;
 5
 6namespace SVETA.Api.Data.DTO.PromoOfferJournal
 7{
 8    [DataContract]
 9    public class PromoBidOutput
 10    {
 011        public PromoBidOutput(PromoBid data)
 012        {
 013            this.Id = data.Id;
 014            this.PromoOfferId = data.PromoOffer.Id;
 015            this.DepartmentId = data.CustomerDepartment.Id;
 016            this.DepartmentName = data.CustomerDepartment.Name;
 017            this.GoodId = data.Good.Id;
 018            this.GoodName = data.Good.Name;
 019            this.Sum = data.Sum;
 020            this.CreationDate = data.CreationDate;
 021            this.DateEnd = data.DateEnd;
 022            this.UniqueCode = data.Good.UniqueCode;
 023        }
 24
 25        [DataMember]
 026        public long Id { get; set; }
 27
 28        [DataMember]
 029        public long PromoOfferId { get; set; }
 30
 31        [DataMember]
 032        public long DepartmentId { get; set; }
 33
 34        [DataMember]
 035        public string DepartmentName { get; set; }
 36
 37        [DataMember]
 038        public long GoodId { get; set; }
 39
 40        [DataMember]
 041        public string GoodName { get; set; }
 42
 43        [DataMember]
 044        public decimal Sum { get; set; }
 45
 46        [DataMember]
 047        public DateTime CreationDate { get; set; }
 48
 49        [DataMember]
 050        public DateTime DateEnd { get; set; }
 51
 52        [DataMember]
 053        public string UniqueCode { get; set; }
 54    }
 55}