< Summary

Information
Class: OzonDomains.Models.OrderPrice
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/OrderPrice.cs
Line coverage
100%
Covered lines: 14
Uncovered lines: 0
Coverable lines: 14
Total lines: 57
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Id()100%11100%
get_AutoActionEnabled()100%11100%
get_CurrencyCode()100%11100%
get_MarketingPrice()100%11100%
get_MarketingSellerPrice()100%11100%
get_MinPrice()100%11100%
get_OldPrice()100%11100%
get_Price()100%11100%
get_RetailPrice()100%11100%
get_Vat()100%11100%
get_AutoAddToOzonActionsListEnabled()100%11100%
get_NetPrice()100%11100%
get_OrderId()100%11100%
get_PriceIndexes()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/OrderPrice.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3using System.Text.Json.Serialization;
 4
 5namespace OzonDomains.Models;
 6
 7public class OrderPrice
 8{
 19    public int Id { get; set; }
 10
 11    [Display(Name = "Авто действие включено")]
 112    public bool AutoActionEnabled { get; set; }
 13
 14    [MaxLength(10)]
 15    [Display(Name = "Код валюты")]
 216    public string CurrencyCode { get; set; } = "RUB";
 17
 18    [Display(Name = "Маркетинговая цена")]
 19    [Column(TypeName = "decimal(18,2)")]
 120    public decimal MarketingPrice { get; set; }
 21
 22    [Display(Name = "Маркетинговая цена продавца")]
 23    [Column(TypeName = "decimal(18,2)")]
 124    public decimal MarketingSellerPrice { get; set; }
 25
 26    [Display(Name = "Минимальная цена")]
 27    [Column(TypeName = "decimal(18,2)")]
 128    public decimal MinPrice { get; set; }
 29
 30    [Display(Name = "Старая цена")]
 31    [Column(TypeName = "decimal(18,2)")]
 132    public decimal OldPrice { get; set; }
 33
 34    [Display(Name = "Цена")]
 35    [Column(TypeName = "decimal(18,2)")]
 236    public decimal Price { get; set; }
 37
 38    [Display(Name = "Розничная цена")]
 39    [Column(TypeName = "decimal(18,2)")]
 140    public decimal RetailPrice { get; set; }
 41
 42    [Display(Name = "НДС")]
 43    [Column(TypeName = "decimal(18,2)")]
 144    public decimal Vat { get; set; }
 45
 46    [Display(Name = "Авто добавление в действия Ozon")]
 147    public bool AutoAddToOzonActionsListEnabled { get; set; }
 48
 49    [Display(Name = "Чистая цена")]
 50    [Column(TypeName = "decimal(18,2)")]
 151    public decimal NetPrice { get; set; }
 52
 153    public int OrderId { get; set; }
 54
 55    // Связь с PriceIndexes
 256    public virtual PriceIndexes? PriceIndexes { get; set; }
 57}