< Summary

Information
Class: OzonDomains.Models.BitrixStockUnarchiveItem
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BitrixStockUnarchiveItem.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 14
Coverable lines: 14
Total lines: 46
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_IsAutoArchived()100%210%
get_IsManualArchived()100%210%
get_WasInArchive()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/BitrixStockUnarchiveItem.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("BitrixStockUnarchiveItems")]
 7public class BitrixStockUnarchiveItem
 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 IsAutoArchived { get; set; }
 31
 032    public bool IsManualArchived { get; set; }
 33
 034    public bool WasInArchive { get; set; } = true;
 35
 36    [Required]
 37    [MaxLength(50)]
 038    public string Status { get; set; } = BitrixStockUnarchiveItemStatus.Pending;
 39
 040    public string? ErrorMessage { get; set; }
 41
 042    public DateTime? ProcessedAt { get; set; }
 43
 44    [ForeignKey(nameof(ExecutionId))]
 045    public virtual BitrixStockUnarchiveExecution? Execution { get; set; }
 46}