< Summary

Class:SVETA.Api.Data.DTO.Rest.RestRequestDTO_POST
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/Rest/RestRequestDTO.cs
Covered lines:0
Uncovered lines:2
Coverable lines:2
Total lines:27
Line coverage:0% (0 of 2)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_DepartmentId()0%100%
get_GoodId()0%100%

File(s)

/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/Rest/RestRequestDTO.cs

#LineLine coverage
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Threading.Tasks;
 5using WinSolutions.Sveta.Server.Data.DataModel.Entities;
 6using System.ComponentModel.DataAnnotations;
 7using SVETA.Api.Validation;
 8
 9namespace SVETA.Api.Data.DTO.Rest
 10{
 11    public class RestRequestDTO_POST
 12    {
 13        [DigitValidate(CanBeZero = false, CanBeNegative = true)]
 14        [Display(Name = "Идентификатор подразделения")]
 015        public long DepartmentId { get; set; }
 16        [DigitValidate(CanBeZero = false, CanBeNegative = true)]
 17        [Display(Name = "Идентификатор товара")]
 018        public long GoodId { get; set; }
 19    }
 20
 21    public class RestRequestDTO_PUT
 22    {
 23        [DigitValidate]
 24        [Display(Name = "Количество")]
 25        public decimal Quantity { get; set; }
 26    }
 27}

Methods/Properties

get_DepartmentId()
get_GoodId()