< Summary

Information
Class: Services.ApiServices.ShateMApi.ShateMDataManager
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/ShateMApi/ShateMDataManager.cs
Line coverage
66%
Covered lines: 4
Uncovered lines: 2
Coverable lines: 6
Total lines: 16
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%
PingAsync(...)100%210%
GetAsync(...)100%11100%
SearchAsync(...)100%11100%
PatchAsync(...)100%210%
DeleteAsync(...)100%11100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/ShateMApi/ShateMDataManager.cs

#LineLine coverage
 1using Newtonsoft.Json.Linq;
 2
 3namespace Services.ApiServices.ShateMApi;
 4
 5/// <summary>Белый список только read-операций Shate-M API.</summary>
 6public sealed class ShateMDataManager
 7{
 8    private readonly ShateMHttpClient _client;
 1149    public ShateMDataManager(ShateMHttpClient client) => _client = client;
 10
 011    public Task<JToken> PingAsync(CancellationToken ct = default) => _client.GetAsync("/api/v1/customer/info", null, ct)
 3412    public Task<JToken> GetAsync(string path, IReadOnlyDictionary<string, string?>? query, CancellationToken ct = defaul
 3313    public Task<JToken> SearchAsync(string path, JToken filter, CancellationToken ct = default) => _client.PostAsync(pat
 014    public Task<JToken> PatchAsync(string path, JToken body, CancellationToken ct = default) => _client.PatchAsync(path,
 615    public Task<JToken> DeleteAsync(string path, CancellationToken ct = default) => _client.DeleteAsync(path, ct);
 16}