< Summary

Information
Class: OzonDomains.Models.BitrixStockAutoScheduleRun
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BitrixStockAutoScheduleRun.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 12
Coverable lines: 12
Total lines: 37
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_ScheduleId()100%210%
get_Status()100%210%
get_StartedAt()100%210%
get_CompletedAt()100%210%
get_CandidatesFound()100%210%
get_ItemsQueued()100%210%
get_ClearExecutionId()100%210%
get_PushExecutionId()100%210%
get_ErrorMessage()100%210%
get_RunLog()100%210%
get_Schedule()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("BitrixStockAutoScheduleRuns")]
 7public class BitrixStockAutoScheduleRun
 8{
 9    [Key]
 010    public long Id { get; set; }
 11
 012    public int ScheduleId { get; set; }
 13
 14    [Required]
 15    [MaxLength(50)]
 016    public string Status { get; set; } = BitrixStockAutoScheduleRunStatus.Running;
 17
 018    public DateTime StartedAt { get; set; } = DateTime.UtcNow;
 19
 020    public DateTime? CompletedAt { get; set; }
 21
 022    public int CandidatesFound { get; set; }
 23
 024    public int ItemsQueued { get; set; }
 25
 026    public long? ClearExecutionId { get; set; }
 27
 028    public long? PushExecutionId { get; set; }
 29
 030    public string? ErrorMessage { get; set; }
 31
 32    /// <summary>Журнал этапов: связи складов, Ozon API, накат/обнуление.</summary>
 033    public string? RunLog { get; set; }
 34
 35    [ForeignKey(nameof(ScheduleId))]
 036    public virtual BitrixStockAutoSchedule? Schedule { get; set; }
 37}