< Summary

Information
Class: OzonDomains.Models.BackgroundJobExecution
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BackgroundJobExecution.cs
Line coverage
77%
Covered lines: 17
Uncovered lines: 5
Coverable lines: 22
Total lines: 61
Line coverage: 77.2%
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%11100%
get_ScheduleId()100%210%
get_JobType()100%11100%
get_Status()100%11100%
get_TriggerType()100%11100%
get_StartedAt()100%11100%
get_CompletedAt()100%11100%
get_DurationMs()100%11100%
get_ErrorMessage()100%11100%
get_ErrorStackTrace()100%210%
get_TotalSteps()100%210%
get_CompletedSteps()100%210%
get_TotalOrders()100%11100%
get_MatchedOrders()100%11100%
get_ProcessedOrders()100%11100%
get_SuccessfulOrders()100%11100%
get_FailedOrders()100%11100%
get_Schedule()100%210%
get_Steps()100%11100%
get_ReportLoads()100%11100%
get_OrderMatches()100%11100%
get_TransactionResults()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("BackgroundJobExecutions")]
 7public class BackgroundJobExecution
 8{
 9    [Key]
 10    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 111    public long Id { get; set; }
 12
 013    public int? ScheduleId { get; set; }
 14
 15    [Required]
 16    [MaxLength(100)]
 1017    public string JobType { get; set; } = string.Empty;
 18
 19    [Required]
 20    [MaxLength(50)]
 2021    public string Status { get; set; } = string.Empty;
 22
 23    [Required]
 24    [MaxLength(50)]
 1025    public string TriggerType { get; set; } = string.Empty;
 26
 1127    public DateTime StartedAt { get; set; } = DateTime.UtcNow;
 28
 329    public DateTime? CompletedAt { get; set; }
 30
 131    public long? DurationMs { get; set; }
 32
 133    public string? ErrorMessage { get; set; }
 34
 035    public string? ErrorStackTrace { get; set; }
 36
 037    public int TotalSteps { get; set; } = 0;
 38
 039    public int CompletedSteps { get; set; } = 0;
 40
 141    public int TotalOrders { get; set; } = 0;
 42
 143    public int MatchedOrders { get; set; } = 0;
 44
 145    public int ProcessedOrders { get; set; } = 0;
 46
 147    public int SuccessfulOrders { get; set; } = 0;
 48
 1049    public int FailedOrders { get; set; } = 0;
 50
 51    [ForeignKey(nameof(ScheduleId))]
 052    public virtual BackgroundJobSchedule? Schedule { get; set; }
 53
 854    public virtual ICollection<BackgroundJobStep> Steps { get; set; } = new List<BackgroundJobStep>();
 55
 856    public virtual ICollection<BackgroundReportLoad> ReportLoads { get; set; } = new List<BackgroundReportLoad>();
 57
 858    public virtual ICollection<BackgroundOrderMatch> OrderMatches { get; set; } = new List<BackgroundOrderMatch>();
 59
 860    public virtual ICollection<BackgroundTransactionResult> TransactionResults { get; set; } = new List<BackgroundTransa
 61}