< Summary

Information
Class: Services.ApiServices.ArmtekApi.Models.Response.ArmtekCreateOrderResponse
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/ArmtekApi/Models/Response/ArmtekCreateOrderResponse.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 31
Line coverage: 100%
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_Items()100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/ArmtekApi/Models/Response/ArmtekCreateOrderResponse.cs

#LineLine coverage
 1using Newtonsoft.Json;
 2using Services.ApiServices.ArmtekApi.Converters;
 3
 4namespace Services.ApiServices.ArmtekApi.Models.Response;
 5
 6public sealed class ArmtekCreateOrderResponse
 7{
 1128    [JsonProperty("ITEMS")] public List<ArmtekCreateOrderItemResult> Items { get; set; } = [];
 9}
 10
 11public sealed class ArmtekCreateOrderItemResult
 12{
 13    [JsonProperty("ARTID")] public string? ArtId { get; set; }
 14    [JsonProperty("PIN")] public string Pin { get; set; } = string.Empty;
 15    [JsonProperty("BRAND")] public string Brand { get; set; } = string.Empty;
 16    [JsonProperty("REMAIN"), JsonConverter(typeof(ArmtekFlexibleStringConverter))] public string? Remain { get; set; }
 17    [JsonProperty("ERROR")] public string? Error { get; set; }
 18    [JsonProperty("ERROR_MESSAGE")] public string? ErrorMessage { get; set; }
 19    [JsonProperty("RESULT")] public List<ArmtekCreateOrderAllocation> Result { get; set; } = [];
 20}
 21
 22public sealed class ArmtekCreateOrderAllocation
 23{
 24    [JsonProperty("POSNR"), JsonConverter(typeof(ArmtekFlexibleStringConverter))] public string? Posnr { get; set; }
 25    [JsonProperty("KWMENG"), JsonConverter(typeof(ArmtekFlexibleStringConverter))] public string? Quantity { get; set; }
 26    [JsonProperty("PRICE"), JsonConverter(typeof(ArmtekFlexibleStringConverter))] public string? Price { get; set; }
 27    [JsonProperty("WAERS")] public string? Currency { get; set; }
 28    [JsonProperty("DLVDT")] public string? DeliveryDate { get; set; }
 29    [JsonProperty("VBELN")] public string? Vbeln { get; set; }
 30    [JsonProperty("ERROR")] public string? Error { get; set; }
 31}

Methods/Properties

get_Items()