< Summary

Information
Class: OzonDomains.Models.ForumAutoOrder
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/ForumAutoOrder.cs
Line coverage
90%
Covered lines: 9
Uncovered lines: 1
Coverable lines: 10
Total lines: 21
Line coverage: 90%
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_ProviderKey()100%11100%
get_Did()100%11100%
get_Eoid()100%11100%
get_Status()100%11100%
get_CreatedBy()100%11100%
get_RequestJson()100%210%
get_ResponseJson()100%11100%
get_CreatedAtUtc()100%11100%
get_Items()100%11100%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6[Table("ForumAutoOrders")]
 7public sealed class ForumAutoOrder
 8{
 229    public long Id { get; set; }
 1610    [Required, MaxLength(20)] public string ProviderKey { get; set; } = string.Empty;
 11    /// <summary>Реальный ИД заказа в системе Forum-Auto, возвращается в первом ответе addGoodsToOrder.</summary>
 3312    public int? Did { get; set; }
 13    /// <summary>Наш ИД заказа, генерируем сами (равен Id этой записи) и передаём во все вызовы батча.</summary>
 2814    public long Eoid { get; set; }
 2515    [Required, MaxLength(30)] public string Status { get; set; } = "Creating";
 616    [MaxLength(450)] public string? CreatedBy { get; set; }
 017    public string? RequestJson { get; set; }
 618    public string? ResponseJson { get; set; }
 819    public DateTime CreatedAtUtc { get; set; } = DateTime.UtcNow;
 820    public ICollection<ForumAutoOrderItem> Items { get; set; } = new List<ForumAutoOrderItem>();
 21}