< Summary

Information
Class: OzonDomains.Models.BackgroundTransactionResult
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BackgroundTransactionResult.cs
Line coverage
65%
Covered lines: 13
Uncovered lines: 7
Coverable lines: 20
Total lines: 62
Line coverage: 65%
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_StepId()100%210%
get_OrderMatchId()100%210%
get_OrderId()100%11100%
get_WarehouseName()100%11100%
get_TransactionId()100%11100%
get_OneCDocumentId()100%11100%
get_OneCDocumentNumber()100%11100%
get_IsPosted()100%11100%
get_Status()100%11100%
get_ErrorMessage()100%11100%
get_IsAutomated()100%11100%
get_Comment()100%11100%
get_CreatedAt()100%11100%
get_Execution()100%210%
get_Step()100%210%
get_OrderMatch()100%210%
get_Order()100%11100%
get_Transaction()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("BackgroundTransactionResults")]
 7public class BackgroundTransactionResult
 8{
 9    [Key]
 10    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 811    public long Id { get; set; }
 12
 013    public long ExecutionId { get; set; }
 14
 015    public long? StepId { get; set; }
 16
 017    public long? OrderMatchId { get; set; }
 18
 919    public int OrderId { get; set; }
 20
 21    [MaxLength(200)]
 522    public string? WarehouseName { get; set; }
 23
 524    public int? TransactionId { get; set; }
 25
 26    [MaxLength(100)]
 1027    public string? OneCDocumentId { get; set; }
 28
 29    [MaxLength(100)]
 930    public string? OneCDocumentNumber { get; set; }
 31
 32    /// <summary>Документ проведён в 1С (OData Posted=true).</summary>
 1733    public bool IsPosted { get; set; }
 34
 35    [Required]
 36    [MaxLength(50)]
 2137    public string Status { get; set; } = string.Empty;
 38
 1039    public string? ErrorMessage { get; set; }
 40
 941    public bool IsAutomated { get; set; } = true;
 42
 43    [MaxLength(1000)]
 544    public string? Comment { get; set; }
 45
 1346    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
 47
 48    [ForeignKey(nameof(ExecutionId))]
 049    public virtual BackgroundJobExecution Execution { get; set; } = null!;
 50
 51    [ForeignKey(nameof(StepId))]
 052    public virtual BackgroundJobStep? Step { get; set; }
 53
 54    [ForeignKey(nameof(OrderMatchId))]
 055    public virtual BackgroundOrderMatch? OrderMatch { get; set; }
 56
 57    [ForeignKey(nameof(OrderId))]
 558    public virtual Order Order { get; set; } = null!;
 59
 60    [ForeignKey(nameof(TransactionId))]
 061    public virtual Transaction? Transaction { get; set; }
 62}