< Summary

Information
Class: OzonDomains.Models.BitrixStockClearItem
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BitrixStockClearItem.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 15
Coverable lines: 15
Total lines: 49
Line coverage: 0%
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_ExecutionId()100%210%
get_SortOrder()100%210%
get_Article()100%210%
get_OfferId()100%210%
get_ProductId()100%210%
get_WarehouseId()100%210%
get_WarehouseName()100%210%
get_OzonClient()100%210%
get_PreviousStock()100%210%
get_TargetStock()100%210%
get_Status()100%210%
get_ErrorMessage()100%210%
get_ProcessedAt()100%210%
get_Execution()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("BitrixStockClearItems")]
 7public class BitrixStockClearItem
 8{
 9    [Key]
 10    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 011    public long Id { get; set; }
 12
 013    public long ExecutionId { get; set; }
 14
 015    public int SortOrder { get; set; }
 16
 17    [MaxLength(200)]
 018    public string? Article { get; set; }
 19
 20    [Required]
 21    [MaxLength(200)]
 022    public string OfferId { get; set; } = string.Empty;
 23
 024    public long ProductId { get; set; }
 25
 026    public long WarehouseId { get; set; }
 27
 28    [MaxLength(200)]
 029    public string? WarehouseName { get; set; }
 30
 31    [Required]
 32    [MaxLength(200)]
 033    public string OzonClient { get; set; } = string.Empty;
 34
 035    public int PreviousStock { get; set; }
 36
 037    public int TargetStock { get; set; }
 38
 39    [Required]
 40    [MaxLength(50)]
 041    public string Status { get; set; } = BitrixStockClearItemStatus.Pending;
 42
 043    public string? ErrorMessage { get; set; }
 44
 045    public DateTime? ProcessedAt { get; set; }
 46
 47    [ForeignKey(nameof(ExecutionId))]
 048    public virtual BitrixStockClearExecution? Execution { get; set; }
 49}