< Summary

Information
Class: Services.ApiServices.MoskvorechieApi.MoskvorechieIstraDataManager
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/MoskvorechieApi/MoskvorechieIstraDataManager.cs
Line coverage
66%
Covered lines: 6
Uncovered lines: 3
Coverable lines: 9
Total lines: 18
Line coverage: 66.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
.ctor(...)100%11100%
FindBrandsAsync(...)100%210%
SearchPricesAsync(...)100%210%
GetGoodsInfoAsync(...)100%210%
GetBasketAsync(...)100%11100%
AddToBasketAsync(...)100%11100%
CleanBasketAsync(...)100%11100%
MakeOrderAsync(...)100%11100%
GetOrderStatesAsync(...)100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/MoskvorechieApi/MoskvorechieIstraDataManager.cs

#LineLine coverage
 1using Newtonsoft.Json.Linq;
 2
 3namespace Services.ApiServices.MoskvorechieApi;
 4
 5public sealed class MoskvorechieIstraDataManager
 6{
 7    private readonly MoskvorechieIstraHttpClient _client;
 1888    public MoskvorechieIstraDataManager(MoskvorechieIstraHttpClient client) => _client = client;
 09    public Task<JToken> FindBrandsAsync(string article, CancellationToken ct = default) => _client.GetAsync("brand_by_nr
 010    public Task<JToken> SearchPricesAsync(string article, string? brand, CancellationToken ct = default) => _client.GetA
 011    public Task<JToken> GetGoodsInfoAsync(string id, CancellationToken ct = default) => _client.GetAsync("g_info", new D
 3412    public Task<JToken> GetBasketAsync(CancellationToken ct = default) => _client.GetAsync("my_basket", ct: ct);
 613    public Task<JToken> AddToBasketAsync(string id, decimal quantity, string? comment, CancellationToken ct = default) =
 214    public Task<JToken> CleanBasketAsync(CancellationToken ct = default) => _client.PostAsync("clean_basket", ct: ct);
 415    public Task<JToken> MakeOrderAsync(CancellationToken ct = default) => _client.PostAsync("make_order_v2", ct: ct);
 16    public Task<JToken> GetOrderStatesAsync(IReadOnlyCollection<string> orderIds, CancellationToken ct = default) =>
 8617        _client.PostAsync("make_order_v2", new Dictionary<string, string?> { ["oids"] = string.Join(';', orderIds.Where(
 18}