< Summary

Information
Class: Services.ApiServices.StudioApi.Models.Response.PriceItem
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/StudioApi/Models/Response/PriceItem.cs
Line coverage
42%
Covered lines: 6
Uncovered lines: 8
Coverable lines: 14
Total lines: 22
Line coverage: 42.8%
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_SupplierId()100%210%
get_ProducerId()100%210%
get_PartCode()100%11100%
get_Cost()100%11100%
get_CurrencyId()100%210%
get_Amount()100%11100%
get_PriceText()100%11100%
get_SessionId()100%210%
get_SurchGrp()100%210%
get_Actual()100%210%
get_Pack()100%210%
get_Currency()100%11100%
get_Supplier()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/StudioApi/Models/Response/PriceItem.cs

#LineLine coverage
 1using Newtonsoft.Json;
 2
 3namespace Services.ApiServices.StudioApi.Models.Response;
 4
 5public class PriceItem
 6{
 07    [JsonProperty("Id")] public int Id { get; set; }
 08    [JsonProperty("SupplierId")] public int SupplierId { get; set; }
 09    [JsonProperty("ProducerId")] public int ProducerId { get; set; }
 2410    [JsonProperty("PartCode")] public string? PartCode { get; set; }
 1811    [JsonProperty("Cost")] public decimal? Cost { get; set; }
 012    [JsonProperty("CurrencyId")] public int? CurrencyId { get; set; }
 1213    [JsonProperty("Amount")] public int? Amount { get; set; }
 1214    [JsonProperty("PriceText")] public string? PriceText { get; set; }
 015    [JsonProperty("SessionId")] public int? SessionId { get; set; }
 016    [JsonProperty("SurchGrp")] public string? SurchGrp { get; set; }
 017    [JsonProperty("Actual")] public bool? Actual { get; set; }
 018    [JsonProperty("Pack")] public int? Pack { get; set; }
 19
 1820    [JsonProperty("Currency")] public Currency Currency { get; set; } = new();
 2421    [JsonProperty("Supplier")] public Supplier Supplier { get; set; } = new();
 22}