< Summary

Information
Class: OzonDomains.Models.BitrixStockArchiveItem
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BitrixStockArchiveItem.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 12
Coverable lines: 12
Total lines: 42
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_OzonProductId()100%210%
get_OzonClient()100%210%
get_WasArchived()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/BitrixStockArchiveItem.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("BitrixStockArchiveItems")]
 7public class BitrixStockArchiveItem
 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 OzonProductId { get; set; }
 25
 26    [Required]
 27    [MaxLength(200)]
 028    public string OzonClient { get; set; } = string.Empty;
 29
 030    public bool WasArchived { get; set; }
 31
 32    [Required]
 33    [MaxLength(50)]
 034    public string Status { get; set; } = BitrixStockArchiveItemStatus.Pending;
 35
 036    public string? ErrorMessage { get; set; }
 37
 038    public DateTime? ProcessedAt { get; set; }
 39
 40    [ForeignKey(nameof(ExecutionId))]
 041    public virtual BitrixStockArchiveExecution? Execution { get; set; }
 42}