< Summary

Information
Class: OzonDomains.Models.BitrixStockPushItem
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BitrixStockPushItem.cs
Line coverage
37%
Covered lines: 6
Uncovered lines: 10
Coverable lines: 16
Total lines: 52
Line coverage: 37.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%210%
get_ExecutionId()100%11100%
get_SortOrder()100%210%
get_Article()100%210%
get_OfferId()100%11100%
get_ProductId()100%210%
get_WarehouseId()100%210%
get_WarehouseName()100%210%
get_OzonClient()100%11100%
get_LinkedStoreName()100%210%
get_PreviousStock()100%11100%
get_TargetStock()100%11100%
get_Status()100%11100%
get_ErrorMessage()100%210%
get_ProcessedAt()100%210%
get_Execution()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("BitrixStockPushItems")]
 7public class BitrixStockPushItem
 8{
 9    [Key]
 10    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 011    public long Id { get; set; }
 12
 20013    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)]
 20022    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)]
 20033    public string OzonClient { get; set; } = string.Empty;
 34
 35    [MaxLength(200)]
 036    public string? LinkedStoreName { get; set; }
 37
 20038    public int PreviousStock { get; set; }
 39
 20040    public int TargetStock { get; set; }
 41
 42    [Required]
 43    [MaxLength(50)]
 20044    public string Status { get; set; } = BitrixStockPushItemStatus.Pending;
 45
 046    public string? ErrorMessage { get; set; }
 47
 048    public DateTime? ProcessedAt { get; set; }
 49
 50    [ForeignKey(nameof(ExecutionId))]
 051    public virtual BitrixStockPushExecution? Execution { get; set; }
 52}