< Summary

Information
Class: OzonDomains.Models.InterpartsSutCurrency
Assembly: OzonDomains
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonDomains/Models/InterpartsSutCurrency.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 32
Line coverage: 0%
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_Name()100%210%
get_Symbol()100%210%
get_RbcId()100%210%
get_Accuracy()100%210%
get_LongName()100%210%
get_RateToRub()100%210%

File(s)

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

#LineLine coverage
 1using System.ComponentModel.DataAnnotations;
 2using System.ComponentModel.DataAnnotations.Schema;
 3
 4namespace OzonDomains.Models;
 5
 6/// <summary>
 7/// Справочник валют Interparts Price API (основная БД MySQL). Курс к рублю — <see cref="RateToRub"/>.
 8/// </summary>
 9[Table("InterpartsSutCurrencies")]
 10public class InterpartsSutCurrency
 11{
 12    [Key]
 013    public int Id { get; set; }
 14
 15    [Required]
 16    [MaxLength(50)]
 017    public string Name { get; set; } = string.Empty;
 18
 19    [MaxLength(10)]
 020    public string Symbol { get; set; } = string.Empty;
 21
 022    public short RbcId { get; set; }
 23
 024    public short Accuracy { get; set; }
 25
 26    [MaxLength(50)]
 027    public string LongName { get; set; } = string.Empty;
 28
 29    /// <summary>Множитель перевода цены в валюте поставщика в рубли.</summary>
 30    [Column(TypeName = "decimal(18,6)")]
 031    public decimal RateToRub { get; set; } = 1m;
 32}