< Summary

Information
Class: OzonDomains.Models.BackgroundJobStep
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BackgroundJobStep.cs
Line coverage
83%
Covered lines: 10
Uncovered lines: 2
Coverable lines: 12
Total lines: 41
Line coverage: 83.3%
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_ExecutionId()100%210%
get_StepNumber()100%11100%
get_StepName()100%11100%
get_Status()100%11100%
get_StartedAt()100%11100%
get_CompletedAt()100%11100%
get_DurationMs()100%11100%
get_InputData()100%11100%
get_OutputData()100%11100%
get_ErrorMessage()100%11100%
get_Execution()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("BackgroundJobSteps")]
 7public class BackgroundJobStep
 8{
 9    [Key]
 10    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 611    public long Id { get; set; }
 12
 013    public long ExecutionId { get; set; }
 14
 815    public int StepNumber { get; set; }
 16
 17    [Required]
 18    [MaxLength(200)]
 1219    public string StepName { get; set; } = string.Empty;
 20
 21    [Required]
 22    [MaxLength(50)]
 723    public string Status { get; set; } = string.Empty;
 24
 725    public DateTime StartedAt { get; set; } = DateTime.UtcNow;
 26
 327    public DateTime? CompletedAt { get; set; }
 28
 329    public long? DurationMs { get; set; }
 30
 31    [Column(TypeName = "json")]
 432    public string? InputData { get; set; }
 33
 34    [Column(TypeName = "json")]
 435    public string? OutputData { get; set; }
 36
 337    public string? ErrorMessage { get; set; }
 38
 39    [ForeignKey(nameof(ExecutionId))]
 040    public virtual BackgroundJobExecution Execution { get; set; } = null!;
 41}