< Summary

Information
Class: OzonDomains.Models.MlAutoRuCartItem
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/MlAutoRuCartItem.cs
Line coverage
100%
Covered lines: 22
Uncovered lines: 0
Coverable lines: 22
Total lines: 42
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_StudioOrderId()100%11100%
get_ActiveStudioOrderId()100%11100%
get_StudioOrder()100%11100%
get_Pin()100%11100%
get_Brand()100%11100%
get_StorageCode()100%11100%
get_WarehouseName()100%11100%
get_ProductName()100%11100%
get_DeliveryAddressId()100%11100%
get_DeliveryAddressName()100%11100%
get_Quantity()100%11100%
get_SourcePrice()100%11100%
get_CurrencyCode()100%11100%
get_DeliveryAtUtc()100%11100%
get_Status()100%11100%
get_TestResultJson()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/MlAutoRuCartItem.cs

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("MlAutoRuCartItems")]
 7public sealed class MlAutoRuCartItem
 8{
 499    public long Id { get; set; }
 13010    public int StudioOrderId { get; set; }
 1411    public int? ActiveStudioOrderId { get; set; }
 2612    public Order? StudioOrder { get; set; }
 24013    [Required, MaxLength(60)] public string Pin { get; set; } = string.Empty;
 21714    [Required, MaxLength(100)] public string Brand { get; set; } = string.Empty;
 12215    [MaxLength(80)] public string? StorageCode { get; set; }
 2516    [MaxLength(160)] public string? WarehouseName { get; set; }
 4417    [MaxLength(200)] public string? ProductName { get; set; }
 8918    [MaxLength(50)] public string? DeliveryAddressId { get; set; }
 6219    [MaxLength(300)] public string? DeliveryAddressName { get; set; }
 15420    public decimal Quantity { get; set; }
 15421    public decimal? SourcePrice { get; set; }
 12122    [MaxLength(8)] public string CurrencyCode { get; set; } = "RUB";
 9123    public DateTime? DeliveryAtUtc { get; set; }
 14324    [Required, MaxLength(30)] public string Status { get; set; } = MlAutoRuCartItemStatus.Pending;
 2125    public string? TestResultJson { get; set; }
 2326    [MaxLength(1000)] public string? LastError { get; set; }
 2027    public DateTime? TestedAtUtc { get; set; }
 1928    [MaxLength(450)] public string? CreatedBy { get; set; }
 6029    public DateTime CreatedAtUtc { get; set; } = DateTime.UtcNow;
 6630    public DateTime UpdatedAtUtc { get; set; } = DateTime.UtcNow;
 31}
 32
 33public static class MlAutoRuCartItemStatus
 34{
 35    public const string Pending = "Pending";
 36    public const string Ready = "Ready";
 37    public const string Processing = "Processing";
 38    public const string Ordered = "Ordered";
 39    public const string Failed = "Failed";
 40    public const string Removed = "Removed";
 41    public static readonly string[] Active = [Pending, Ready, Processing, Failed];
 42}