< Summary

Information
Class: OzonDomains.Models.BitrixStockExceptionClientPrice
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/BitrixStockExceptionClientPrice.cs
Line coverage
63%
Covered lines: 7
Uncovered lines: 4
Coverable lines: 11
Total lines: 26
Line coverage: 63.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%210%
get_Article()100%11100%
get_OzonClientId()100%11100%
get_PriceMode()100%11100%
get_FixedPrice()100%11100%
get_FixedOldPrice()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/BitrixStockExceptionClientPrice.cs

#LineLine coverage
 1namespace OzonDomains.Models;
 2
 3public static class BitrixStockPriceMode
 4{
 5    public const string Standard = "standard";
 6    public const string Skip = "skip";
 7    public const string Fixed = "fixed";
 8}
 9
 10public class BitrixStockExceptionClientPrice
 11{
 012    public int Id { get; set; }
 1413    public string Article { get; set; } = string.Empty;
 714    public int OzonClientId { get; set; }
 15    /// <summary>standard | skip | fixed</summary>
 2116    public string PriceMode { get; set; } = BitrixStockPriceMode.Standard;
 17    /// <summary>Фиксированная цена (актуально при PriceMode=fixed).</summary>
 818    public decimal? FixedPrice { get; set; }
 19    /// <summary>Старая/зачёркнутая цена (актуально при PriceMode=fixed).</summary>
 620    public decimal? FixedOldPrice { get; set; }
 1221    public string? Comment { get; set; }
 722    public bool IsActive { get; set; } = true;
 023    public DateTime CreatedAt { get; set; }
 024    public DateTime UpdatedAt { get; set; }
 025    public string? CreatedBy { get; set; }
 26}