< Summary

Information
Class: Services.ApiServices.MikadoApi.MikadoDataManager
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/MikadoApi/MikadoDataManager.cs
Line coverage
50%
Covered lines: 6
Uncovered lines: 6
Coverable lines: 12
Total lines: 20
Line coverage: 50%
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%
GetMyIpAsync(...)100%210%
CodeSearchTestAsync(...)100%210%
CodeInfoTestAsync(...)100%210%
CodeBrandStockInfoAsync(...)100%11100%
GetStocksInfoAsync(...)100%210%
GetBasketAsync(...)100%11100%
AddToBasketStrictAsync(...)100%11100%
DeleteBasketItemAsync(...)100%11100%
GetOrderHistoryAsync(...)100%11100%
GetExpressOptionsAsync(...)100%210%
GetDeliveriesAsync(...)100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/MikadoApi/MikadoDataManager.cs

#LineLine coverage
 1namespace Services.ApiServices.MikadoApi;
 2
 3/// <summary>Read-only операции Микадо, используемые диагностической консолью.</summary>
 4public sealed class MikadoDataManager
 5{
 6    private readonly MikadoHttpClient _client;
 327    public MikadoDataManager(MikadoHttpClient client) => _client = client;
 8
 09    public Task<string> GetMyIpAsync(CancellationToken ct = default) => _client.GetMyIpAsync(ct);
 010    public Task<string> CodeSearchTestAsync(CancellationToken ct = default) => _client.CodeSearchTestAsync(ct);
 011    public Task<string> CodeInfoTestAsync(string code, CancellationToken ct = default) => _client.CodeInfoTestAsync(code
 212    public Task<string> CodeBrandStockInfoAsync(string code, string brand, CancellationToken ct = default) => _client.Co
 013    public Task<string> GetStocksInfoAsync(CancellationToken ct = default) => _client.GetStocksInfoAsync(ct);
 414    public Task<string> GetBasketAsync(CancellationToken ct = default) => _client.GetBasketAsync(ct);
 515    public Task<string> AddToBasketStrictAsync(string orderCode, int quantity, int deliveryType, string notes, int expre
 116    public Task<string> DeleteBasketItemAsync(long itemId, CancellationToken ct = default) => _client.DeleteBasketItemAs
 317    public Task<string> GetOrderHistoryAsync(long basketItemId, CancellationToken ct = default) => _client.GetOrderHisto
 018    public Task<string> GetExpressOptionsAsync(string orderCode, int stockId, CancellationToken ct = default) => _client
 019    public Task<string> GetDeliveriesAsync(DateTime from, DateTime to, CancellationToken ct = default) => _client.GetDel
 20}