< Summary

Information
Class: Services.ApiServices.MoskvorechieApi.MoskvorechieIstraSupplierConnector
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/ApiServices/MoskvorechieApi/MoskvorechieIstraSupplierConnector.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 18
Line coverage: 0%
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%210%
get_ProviderKey()100%210%
get_DisplayName()100%210%
get_DefaultCurrencyCode()100%210%
get_SiteUrl()100%210%
PingAsync()100%210%

File(s)

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

#LineLine coverage
 1using Services.ApiServices.ApiSupplierIntegration;
 2
 3namespace Services.ApiServices.MoskvorechieApi;
 4
 5public sealed class MoskvorechieIstraSupplierConnector : IApiSupplierConnector
 6{
 7    private readonly MoskvorechieIstraDataManager _manager;
 08    public MoskvorechieIstraSupplierConnector(MoskvorechieIstraDataManager manager) => _manager = manager;
 09    public string ProviderKey => MoskvorechieIstraHttpClient.ProviderKey;
 010    public string DisplayName => "Москворечье (Истра)";
 011    public string DefaultCurrencyCode => "RUB";
 012    public string SiteUrl => "https://portal.moskvorechie.ru/";
 13    public async Task<ApiSupplierPingResult> PingAsync(CancellationToken cancellationToken = default)
 14    {
 015        await _manager.FindBrandsAsync("KL2", cancellationToken);
 016        return new ApiSupplierPingResult(true);
 017    }
 18}