< Summary

Information
Class: OzonDomains.Models.BitrixStockExceptionStockRule
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BitrixStockExceptionStockRule.cs
Line coverage
55%
Covered lines: 5
Uncovered lines: 4
Coverable lines: 9
Total lines: 22
Line coverage: 55.5%
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_Article()100%11100%
get_OzonClientId()100%11100%
get_StockMode()100%11100%
get_Comment()100%11100%
get_IsActive()100%11100%
get_CreatedAt()100%210%
get_UpdatedAt()100%210%
get_CreatedBy()100%210%

File(s)

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

#LineLine coverage
 1namespace OzonDomains.Models;
 2
 3public static class BitrixStockStockMode
 4{
 5    public const string Standard = "standard";
 6    public const string Skip = "skip";
 7}
 8
 9public class BitrixStockExceptionStockRule
 10{
 011    public int Id { get; set; }
 1512    public string Article { get; set; } = string.Empty;
 13    /// <summary>null = правило применяется ко всем кабинетам.</summary>
 714    public int? OzonClientId { get; set; }
 15    /// <summary>standard | skip</summary>
 2316    public string StockMode { get; set; } = BitrixStockStockMode.Skip;
 817    public string? Comment { get; set; }
 918    public bool IsActive { get; set; } = true;
 019    public DateTime CreatedAt { get; set; }
 020    public DateTime UpdatedAt { get; set; }
 021    public string? CreatedBy { get; set; }
 22}