< Summary

Information
Class: OzonDomains.Models.OrderHistoryOneCPosting
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/OrderHistoryOneCPosting.cs
Line coverage
100%
Covered lines: 25
Uncovered lines: 0
Coverable lines: 25
Total lines: 76
Line coverage: 100%
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_OrderId()100%11100%
get_TransactionId()100%11100%
get_OperationKind()100%11100%
get_Success()100%11100%
get_PostedAt()100%11100%
get_ChangedBy()100%11100%
get_HistoryBatchKey()100%11100%
get_OrganizationName()100%11100%
get_OrganizationInn()100%11100%
get_SenderName()100%11100%
get_SenderInn()100%11100%
get_WarehouseSender()100%11100%
get_WarehouseRecipient()100%11100%
get_OrdersCount()100%11100%
get_ProductsCount()100%11100%
get_ArticlesSummary()100%11100%
get_DocumentsCount()100%11100%
get_DocumentNumbers()100%11100%
get_DocumentGuids()100%11100%
get_IsPosted()100%11100%
get_ErrorSummary()100%11100%
get_DetailsJson()100%11100%
get_CreatedAt()100%11100%
get_HistoryLinks()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("OrderHistoryOneCPostings")]
 7public class OrderHistoryOneCPosting
 8{
 9    [Key]
 10    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
 211    public long Id { get; set; }
 12
 4213    public int OrderId { get; set; }
 14
 1215    public int? TransactionId { get; set; }
 16
 17    [MaxLength(32)]
 5218    public string OperationKind { get; set; } = string.Empty;
 19
 2220    public bool Success { get; set; }
 21
 3922    public DateTime PostedAt { get; set; }
 23
 24    [MaxLength(255)]
 1225    public string? ChangedBy { get; set; }
 26
 27    [MaxLength(128)]
 1328    public string? HistoryBatchKey { get; set; }
 29
 30    [MaxLength(255)]
 1231    public string? OrganizationName { get; set; }
 32
 33    [MaxLength(64)]
 1234    public string? OrganizationInn { get; set; }
 35
 36    [MaxLength(255)]
 1237    public string? SenderName { get; set; }
 38
 39    [MaxLength(64)]
 1240    public string? SenderInn { get; set; }
 41
 42    [MaxLength(255)]
 1243    public string? WarehouseSender { get; set; }
 44
 45    [MaxLength(255)]
 1246    public string? WarehouseRecipient { get; set; }
 47
 1248    public int OrdersCount { get; set; }
 49
 1250    public int ProductsCount { get; set; }
 51
 52    [MaxLength(500)]
 1253    public string? ArticlesSummary { get; set; }
 54
 1255    public int DocumentsCount { get; set; }
 56
 57    [MaxLength(1000)]
 1258    public string? DocumentNumbers { get; set; }
 59
 60    /// <summary>Ref_Key GUID-ы документов 1С через запятую — для поиска и перехода в 1С Fresh.</summary>
 61    [MaxLength(2000)]
 1262    public string? DocumentGuids { get; set; }
 63
 64    /// <summary>Все документы успешно проведены (Posted=true) в 1С.</summary>
 3565    public bool IsPosted { get; set; }
 66
 67    [MaxLength(2000)]
 2668    public string? ErrorSummary { get; set; }
 69
 70    [Column(TypeName = "longtext")]
 1371    public string? DetailsJson { get; set; }
 72
 4973    public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
 74
 4375    public virtual ICollection<OrderHistoryOneCPostingLink> HistoryLinks { get; set; } = new List<OrderHistoryOneCPostin
 76}