< Summary

Information
Class: OzonDomains.Models.MikadoCartItem
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/MikadoCartItem.cs
Line coverage
95%
Covered lines: 22
Uncovered lines: 1
Coverable lines: 23
Total lines: 41
Line coverage: 95.6%
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_StudioOrderId()100%11100%
get_ActiveStudioOrderId()100%11100%
get_StudioOrder()100%210%
get_OrderCode()100%11100%
get_StockId()100%11100%
get_ApiBasketItemId()100%11100%
get_Article()100%11100%
get_Brand()100%11100%
get_ProductName()100%11100%
get_WarehouseName()100%11100%
get_Quantity()100%11100%
get_MinimumQuantity()100%11100%
get_SourcePrice()100%11100%
get_DeliveryDays()100%11100%
get_DeliveryType()100%11100%
get_ExpressId()100%11100%
get_Status()100%11100%
get_LastError()100%11100%
get_TestedAtUtc()100%11100%
get_CreatedBy()100%11100%
get_CreatedAtUtc()100%11100%
get_UpdatedAtUtc()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("MikadoCartItems")]
 7public sealed class MikadoCartItem
 8{
 159    public long Id { get; set; }
 1610    public int StudioOrderId { get; set; }
 1611    public int? ActiveStudioOrderId { get; set; }
 012    public Order? StudioOrder { get; set; }
 2213    [Required, MaxLength(80)] public string OrderCode { get; set; } = string.Empty;
 1214    public int StockId { get; set; }
 3015    public long ApiBasketItemId { get; set; }
 2516    [Required, MaxLength(80)] public string Article { get; set; } = string.Empty;
 2217    [Required, MaxLength(120)] public string Brand { get; set; } = string.Empty;
 518    [MaxLength(255)] public string? ProductName { get; set; }
 519    [MaxLength(160)] public string? WarehouseName { get; set; }
 1320    public int Quantity { get; set; }
 1121    public int MinimumQuantity { get; set; }
 622    public decimal? SourcePrice { get; set; }
 523    public int DeliveryDays { get; set; }
 524    public int DeliveryType { get; set; }
 525    public int ExpressId { get; set; }
 2626    [Required, MaxLength(20)] public string Status { get; set; } = MikadoCartItemStatus.Pending;
 327    [MaxLength(1000)] public string? LastError { get; set; }
 128    public DateTime? TestedAtUtc { get; set; }
 529    [MaxLength(450)] public string? CreatedBy { get; set; }
 1030    public DateTime CreatedAtUtc { get; set; } = DateTime.UtcNow;
 1331    public DateTime UpdatedAtUtc { get; set; } = DateTime.UtcNow;
 32}
 33
 34public static class MikadoCartItemStatus
 35{
 36    public const string Pending = "Pending";
 37    public const string Ready = "Ready";
 38    public const string Failed = "Failed";
 39    public const string Removed = "Removed";
 40    public static readonly string[] Active = [Pending, Ready, Failed];
 41}