< Summary

Information
Class: OzonDomains.Models.WarehouseStockSnapshot
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/WarehouseStockSnapshot.cs
Line coverage
96%
Covered lines: 28
Uncovered lines: 1
Coverable lines: 29
Total lines: 66
Line coverage: 96.5%
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_RowKey()100%11100%
get_SourceRowNumber()100%11100%
get_SourceSheetName()100%11100%
get_SourceType()100%11100%
get_Manufacturer()100%11100%
get_Article()100%11100%
get_ProductName()100%11100%
get_SaleFlag()100%11100%
get_M2Qty()100%11100%
get_M1Qty()100%11100%
get_M3Qty()100%11100%
get_B1Qty()100%11100%
get_B2Qty()100%11100%
get_UnitCost()100%11100%
get_TotalCost()100%11100%
get_SalePriceUnit()100%11100%
get_AccountingPriceUnit()100%11100%
get_PriceDiffAccountingMinusSale()100%11100%
get_C0()100%11100%
get_StockAmountByC0()100%11100%
get_ExistPrice()100%11100%
get_C1ExistMinus5Percent()100%11100%
get_C1PercentToC0()100%11100%
get_Warehouse()100%11100%
get_SourceUpdatedAtUtc()100%11100%
get_SyncedAtUtc()100%11100%
get_SyncRunId()100%11100%
get_SyncRun()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("WarehouseStockSnapshot")]
 7public class WarehouseStockSnapshot
 8{
 9    [Key]
 10    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 1211    public long Id { get; set; }
 12
 13    [Required]
 14    [MaxLength(128)]
 31015    public string RowKey { get; set; } = string.Empty;
 16
 2917    public int SourceRowNumber { get; set; }
 18
 19    [Required]
 20    [MaxLength(128)]
 52021    public string SourceSheetName { get; set; } = string.Empty;
 22
 23    [Required]
 24    [MaxLength(32)]
 62925    public string SourceType { get; set; } = WarehouseStockSyncSourceType.GoogleSheets;
 26
 27    [MaxLength(255)]
 46628    public string? Manufacturer { get; set; }
 29
 30    [MaxLength(128)]
 76731    public string? Article { get; set; }
 32
 33    [MaxLength(512)]
 25834    public string? ProductName { get; set; }
 35
 36    [MaxLength(128)]
 4737    public string? SaleFlag { get; set; }
 38
 5239    public decimal? M2Qty { get; set; }
 24040    public decimal? M1Qty { get; set; }
 5141    public decimal? M3Qty { get; set; }
 4942    public decimal? B1Qty { get; set; }
 4943    public decimal? B2Qty { get; set; }
 1744    public decimal? UnitCost { get; set; }
 1145    public decimal? TotalCost { get; set; }
 1746    public decimal? SalePriceUnit { get; set; }
 1747    public decimal? AccountingPriceUnit { get; set; }
 1748    public decimal? PriceDiffAccountingMinusSale { get; set; }
 27049    public decimal? C0 { get; set; }
 1050    public decimal? StockAmountByC0 { get; set; }
 1751    public decimal? ExistPrice { get; set; }
 1752    public decimal? C1ExistMinus5Percent { get; set; }
 1753    public decimal? C1PercentToC0 { get; set; }
 54
 55    [MaxLength(32)]
 1256    public string? Warehouse { get; set; }
 57
 48758    public DateTime SourceUpdatedAtUtc { get; set; } = DateTime.UtcNow;
 59
 30460    public DateTime SyncedAtUtc { get; set; } = DateTime.UtcNow;
 61
 1262    public long SyncRunId { get; set; }
 63
 64    [ForeignKey(nameof(SyncRunId))]
 065    public virtual WarehouseStockSyncRun? SyncRun { get; set; }
 66}