< Summary

Information
Class: OzonDomains.Models.OzonPostingCancellation
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/OzonPostingCancellation.cs
Line coverage
92%
Covered lines: 12
Uncovered lines: 1
Coverable lines: 13
Total lines: 32
Line coverage: 92.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_OzonClientId()100%11100%
get_PostingNumber()100%11100%
get_ReasonId()100%11100%
get_ReasonTitle()100%11100%
get_ReasonMessage()100%11100%
get_ReasonTypeId()100%11100%
get_OccurredAt()100%11100%
get_Source()100%11100%
get_EventFingerprint()100%11100%
get_CreatedAt()100%11100%
get_OzonClient()100%210%
get_OrderLinks()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using Microsoft.EntityFrameworkCore;
 3
 4namespace OzonDomains.Models;
 5
 6/// <summary>Зафиксированная причина отмены отправления Ozon.</summary>
 7public class OzonPostingCancellation
 8{
 169    public long Id { get; set; }
 1510    public int OzonClientId { get; set; }
 583411    [MaxLength(100)] public string PostingNumber { get; set; } = string.Empty;
 112    public long? ReasonId { get; set; }
 513    [MaxLength(500)] public string? ReasonTitle { get; set; }
 114    public string? ReasonMessage { get; set; }
 115    [MaxLength(32)] public string? ReasonTypeId { get; set; }
 290316    public DateTime OccurredAt { get; set; }
 291817    [MaxLength(20)] public string Source { get; set; } = string.Empty;
 291818    [MaxLength(64)] public string EventFingerprint { get; set; } = string.Empty;
 119    public DateTime CreatedAt { get; set; }
 020    public OzonClient? OzonClient { get; set; }
 292721    public ICollection<OzonPostingCancellationOrder> OrderLinks { get; set; } = new List<OzonPostingCancellationOrder>()
 22}
 23
 24/// <summary>Связь причины отмены с товарной строкой заказа.</summary>
 25[PrimaryKey(nameof(CancellationId), nameof(OrderId))]
 26public class OzonPostingCancellationOrder
 27{
 28    public long CancellationId { get; set; }
 29    public int OrderId { get; set; }
 30    public OzonPostingCancellation Cancellation { get; set; } = null!;
 31    public Order Order { get; set; } = null!;
 32}