< Summary

Information
Class: OzonDomains.Models.OzonApi.OzonProduct
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/OzonApi/OzonProduct.cs
Line coverage
29%
Covered lines: 7
Uncovered lines: 17
Coverable lines: 24
Total lines: 87
Line coverage: 29.1%
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%210%
get_AccountId()100%11100%
get_AccountName()100%11100%
get_OfferId()100%11100%
get_ProductId()100%11100%
get_Name()100%11100%
get_Price()100%11100%
get_OldPrice()100%210%
get_MarketingPrice()100%210%
get_MinOzonPrice()100%210%
get_PriceIndex()100%210%
get_CommFbs()100%210%
get_CommFbo()100%210%
get_Acquiring()100%210%
get_FbsMileMin()100%210%
get_FbsMileMax()100%210%
get_FbsDirectMin()100%210%
get_FbsDirectMax()100%210%
get_FboDeliv()100%210%
get_UpdatedAt()100%210%
get_FbsDeliv()100%210%
get_FboTransMin()100%210%
get_FboTransMax()100%210%
get_Visibility()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/OzonApi/OzonProduct.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models.OzonApi;
 5
 6/// <summary>Строка каталога Ozon Seller из БД OzonApi.ozon_products.</summary>
 7[Table("ozon_products")]
 8public class OzonProduct
 9{
 10    [Key]
 11    [Column("id")]
 012    public uint Id { get; set; }
 13
 14    [Column("account_id")]
 15    [MaxLength(20)]
 316    public string AccountId { get; set; } = string.Empty;
 17
 18    [Column("account_name")]
 19    [MaxLength(100)]
 420    public string AccountName { get; set; } = string.Empty;
 21
 22    [Column("offer_id")]
 23    [MaxLength(200)]
 324    public string OfferId { get; set; } = string.Empty;
 25
 26    [Column("product_id")]
 227    public long? ProductId { get; set; }
 28
 29    [Column("name")]
 130    public string? Name { get; set; }
 31
 32    [Column("price")]
 233    public decimal? Price { get; set; }
 34
 35    [Column("old_price")]
 036    public decimal? OldPrice { get; set; }
 37
 38    [Column("marketing_price")]
 039    public decimal? MarketingPrice { get; set; }
 40
 41    [Column("min_ozon_price")]
 042    public decimal? MinOzonPrice { get; set; }
 43
 44    [Column("price_index")]
 45    [MaxLength(20)]
 046    public string? PriceIndex { get; set; }
 47
 48    [Column("comm_fbs")]
 049    public decimal? CommFbs { get; set; }
 50
 51    [Column("comm_fbo")]
 052    public decimal? CommFbo { get; set; }
 53
 54    [Column("acquiring")]
 055    public decimal? Acquiring { get; set; }
 56
 57    [Column("fbs_mile_min")]
 058    public decimal? FbsMileMin { get; set; }
 59
 60    [Column("fbs_mile_max")]
 061    public decimal? FbsMileMax { get; set; }
 62
 63    [Column("fbs_direct_min")]
 064    public decimal? FbsDirectMin { get; set; }
 65
 66    [Column("fbs_direct_max")]
 067    public decimal? FbsDirectMax { get; set; }
 68
 69    [Column("fbo_deliv")]
 070    public decimal? FboDeliv { get; set; }
 71
 72    [Column("updated_at")]
 073    public DateTime? UpdatedAt { get; set; }
 74
 75    [Column("fbs_deliv")]
 076    public decimal? FbsDeliv { get; set; }
 77
 78    [Column("fbo_trans_min")]
 079    public decimal? FboTransMin { get; set; }
 80
 81    [Column("fbo_trans_max")]
 082    public decimal? FboTransMax { get; set; }
 83
 84    [Column("visibility")]
 85    [MaxLength(30)]
 286    public string? Visibility { get; set; }
 87}