< Summary

Information
Class: OzonDomains.Models.BackgroundOrderMatch
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BackgroundOrderMatch.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 17
Coverable lines: 17
Total lines: 54
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_ReportLoadId()100%210%
get_OrderNumber()100%210%
get_Article()100%210%
get_OrderId()100%210%
get_OrderStatus()100%210%
get_IsMatchedInDb()100%210%
get_IsEligibleForProcessing()100%210%
get_RejectionReason()100%210%
get_CreatedAt()100%210%
get_Execution()100%210%
get_Step()100%210%
get_ReportLoad()100%210%
get_Order()100%210%
get_TransactionResults()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("BackgroundOrderMatches")]
 7public class BackgroundOrderMatch
 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 long? ReportLoadId { get; set; }
 18
 19    [Required]
 20    [MaxLength(100)]
 021    public string OrderNumber { get; set; } = string.Empty;
 22
 23    [Required]
 24    [MaxLength(100)]
 025    public string Article { get; set; } = string.Empty;
 26
 027    public int? OrderId { get; set; }
 28
 29    [MaxLength(100)]
 030    public string? OrderStatus { get; set; }
 31
 032    public bool IsMatchedInDb { get; set; }
 33
 034    public bool IsEligibleForProcessing { get; set; }
 35
 36    [MaxLength(500)]
 037    public string? RejectionReason { get; set; }
 38
 039    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
 40
 41    [ForeignKey(nameof(ExecutionId))]
 042    public virtual BackgroundJobExecution Execution { get; set; } = null!;
 43
 44    [ForeignKey(nameof(StepId))]
 045    public virtual BackgroundJobStep? Step { get; set; }
 46
 47    [ForeignKey(nameof(ReportLoadId))]
 048    public virtual BackgroundReportLoad? ReportLoad { get; set; }
 49
 50    [ForeignKey(nameof(OrderId))]
 051    public virtual Order? Order { get; set; }
 52
 053    public virtual ICollection<BackgroundTransactionResult> TransactionResults { get; set; } = new List<BackgroundTransa
 54}