< Summary

Information
Class: OzonDomains.Models.SupplierQuotationRequest
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/SupplierQuotationRequest.cs
Line coverage
77%
Covered lines: 14
Uncovered lines: 4
Coverable lines: 18
Total lines: 26
Line coverage: 77.7%
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_ProductId()100%11100%
get_Product()100%210%
get_OrderId()100%11100%
get_Order()100%210%
get_ProviderKey()100%11100%
get_SupplierId()100%11100%
get_Supplier()100%210%
get_Article()100%11100%
get_Brand()100%11100%
get_Status()100%11100%
get_RequestedAtUtc()100%11100%
get_CompletedAtUtc()100%11100%
get_DurationMs()100%11100%
get_OffersCount()100%11100%
get_ErrorMessage()100%11100%
get_RequestParametersJson()100%11100%
get_Offers()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2
 3namespace OzonDomains.Models;
 4
 5/// <summary>Снимок одного обращения Studio2 к API-поставщику для проценки товара.</summary>
 6public sealed class SupplierQuotationRequest
 7{
 08    public long Id { get; set; }
 49    public int ProductId { get; set; }
 010    public Product Product { get; set; } = null!;
 311    public int OrderId { get; set; }
 012    public Order Order { get; set; } = null!;
 613    [Required, MaxLength(64)] public string ProviderKey { get; set; } = string.Empty;
 414    public int? SupplierId { get; set; }
 015    public Supplier? Supplier { get; set; }
 616    [Required, MaxLength(255)] public string Article { get; set; } = string.Empty;
 317    [MaxLength(255)] public string? Brand { get; set; }
 918    [Required, MaxLength(16)] public string Status { get; set; } = string.Empty;
 319    public DateTime RequestedAtUtc { get; set; }
 320    public DateTime CompletedAtUtc { get; set; }
 321    public long DurationMs { get; set; }
 322    public int OffersCount { get; set; }
 523    [MaxLength(2000)] public string? ErrorMessage { get; set; }
 324    public string? RequestParametersJson { get; set; }
 725    public ICollection<SupplierQuotationOffer> Offers { get; set; } = new List<SupplierQuotationOffer>();
 26}