< Summary

Class:SVETA.Api.Data.DTO.Movements.SliceMovementItem
Assembly:SVETA.Api
File(s):/opt/dev/sveta_api_build/SVETA.Api/Data/DTO/Movements/SliceMovementItem.cs
Covered lines:20
Uncovered lines:0
Coverable lines:20
Total lines:31
Line coverage:100% (20 of 20)
Covered branches:0
Total branches:0

Metrics

MethodLine coverage Branch coverage
get_Good()100%100%
get_Price()100%100%
get_Quantity()100%100%
get_Comment()100%100%
get_Sum()100%100%
get_CreationDateTime()100%100%
get_Id()100%100%
get_RecState()100%100%
op_Implicit(...)100%100%

File(s)

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

#LineLine coverage
 1using System;
 2using WinSolutions.Sveta.Server.Data.DataModel.Entities;
 3
 4namespace SVETA.Api.Data.DTO.Movements
 5{
 6    public class SliceMovementItem
 7    {
 348        public Good Good { get; set; }
 209        public decimal Price { get; set; }
 2010        public decimal Quantity { get; set; }
 2011        public string Comment { get; set; }
 1412        public decimal Sum { get; set; }
 2013        public DateTime CreationDateTime { get; set; }
 2214        public long Id { get; set; }
 2015        public RecordsState RecState { get; set; }
 16
 17        public static implicit operator MovementItem(SliceMovementItem item)
 1018        {
 1019            return new MovementItem
 1020            {
 1021                Id = item.Id,
 1022                Good = item.Good,
 1023                Price = item.Price,
 1024                Comment = item.Comment,
 1025                CreationDateTime = item.CreationDateTime,
 1026                RecState = item.RecState,
 1027                Quantity = item.Quantity
 1028            };
 1029        }
 30    }
 31}