< Summary

Information
Class: Services.ApiServices.OzonApi.Filters.ProductAttributesResponse
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/OzonApi/Filters/ProductAttributesResponse.cs
Line coverage
33%
Covered lines: 1
Uncovered lines: 2
Coverable lines: 3
Total lines: 17
Line coverage: 33.3%
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_Result()100%11100%
get_Total()100%210%
get_LastId()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/OzonApi/Filters/ProductAttributesResponse.cs

#LineLine coverage
 1using Newtonsoft.Json;
 2
 3namespace Services.ApiServices.OzonApi.Filters;
 4
 5public class ProductAttributesResponse
 6{
 7    [JsonProperty("result")]
 98    public List<ProductAttributesItemResponse>? Result { get; set; } = [];
 9
 10    // По документации это int64, но в некоторых ответах встречается строкой.
 11    [JsonProperty("total")]
 012    public long? Total { get; set; }
 13
 14    [JsonProperty("last_id")]
 015    public string? LastId { get; set; }
 16}
 17