< Summary

Information
Class: Services.LabelServices.OzonLabelOrderEligibility
Assembly: Services
File(s): /home/runner/work/Studio2Prod/Studio2Prod/AppRepository/LabelServices/OzonLabelOrderEligibility.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 18
Line coverage: 100%
Branch coverage
100%
Covered branches: 10
Total branches: 10
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
IsOzonOrder(...)100%1010100%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/AppRepository/LabelServices/OzonLabelOrderEligibility.cs

#LineLine coverage
 1using OzonDomains;
 2
 3namespace Services.LabelServices;
 4
 5public static class OzonLabelOrderEligibility
 6{
 7    public static bool IsOzonOrder(ClientType? clientType, string? shipmentNumber, int? ozonClientId = null)
 8    {
 119        if (clientType.HasValue && clientType.Value != ClientType.ALL)
 10        {
 511            return clientType.Value == ClientType.OZON && !string.IsNullOrWhiteSpace(shipmentNumber);
 12        }
 13
 614        return !string.IsNullOrWhiteSpace(shipmentNumber)
 615               && ozonClientId.HasValue
 616               && ozonClientId.Value > 0;
 17    }
 18}