< Summary

Information
Class: Elsa.Api.Client.Extensions.ResilienceStrategyExtensions
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Extensions/ResilienceStrategyExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 16
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
GetResilienceStrategyId(...)100%210%
GetResilienceStrategyDisplayName(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Extensions/ResilienceStrategyExtensions.cs

#LineLine coverage
 1using System.Text.Json.Nodes;
 2
 3namespace Elsa.Api.Client.Extensions;
 4
 5public static class ResilienceStrategyExtensions
 6{
 7    public static string GetResilienceStrategyId(this JsonObject strategyJsonObject)
 8    {
 09        return strategyJsonObject.GetProperty<string>("id")!;
 10    }
 11
 12    public static string GetResilienceStrategyDisplayName(this JsonObject strategyJsonObject)
 13    {
 014        return strategyJsonObject.GetProperty<string>("displayName")!;
 15    }
 16}