< Summary

Information
Class: OzonDomains.Models.BackgroundReportLoad
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BackgroundReportLoad.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 19
Coverable lines: 19
Total lines: 55
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_StepId()100%210%
get_OzonClientId()100%210%
get_ReportCode()100%210%
get_FileName()100%210%
get_ReportPeriodFrom()100%210%
get_ReportPeriodTo()100%210%
get_FileSizeBytes()100%210%
get_TotalRows()100%210%
get_RowsWithRequiredData()100%210%
get_UniqueOrderNumbers()100%210%
get_FileUrl()100%210%
get_Status()100%210%
get_ErrorMessage()100%210%
get_CreatedAt()100%210%
get_Execution()100%210%
get_Step()100%210%
get_OzonClient()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("BackgroundReportLoads")]
 7public class BackgroundReportLoad
 8{
 9    [Key]
 10    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 011    public long Id { get; set; }
 12
 013    public long ExecutionId { get; set; }
 14
 015    public long? StepId { get; set; }
 16
 017    public int OzonClientId { get; set; }
 18
 19    [MaxLength(100)]
 020    public string? ReportCode { get; set; }
 21
 22    [MaxLength(500)]
 023    public string? FileName { get; set; }
 24
 025    public DateTime ReportPeriodFrom { get; set; }
 26
 027    public DateTime ReportPeriodTo { get; set; }
 28
 029    public long? FileSizeBytes { get; set; }
 30
 031    public int? TotalRows { get; set; }
 32
 033    public int? RowsWithRequiredData { get; set; }
 34
 035    public int? UniqueOrderNumbers { get; set; }
 36
 037    public string? FileUrl { get; set; }
 38
 39    [Required]
 40    [MaxLength(50)]
 041    public string Status { get; set; } = string.Empty;
 42
 043    public string? ErrorMessage { get; set; }
 44
 045    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
 46
 47    [ForeignKey(nameof(ExecutionId))]
 048    public virtual BackgroundJobExecution Execution { get; set; } = null!;
 49
 50    [ForeignKey(nameof(StepId))]
 051    public virtual BackgroundJobStep? Step { get; set; }
 52
 53    [ForeignKey(nameof(OzonClientId))]
 054    public virtual OzonClient OzonClient { get; set; } = null!;
 55}