< Summary

Information
Class: Elsa.Api.Client.Shared.Models.HttpStatusCodeCase
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Shared/Models/HttpStatusCodeCase.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 19
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
get_StatusCode()100%210%
get_Activity()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Shared/Models/HttpStatusCodeCase.cs

#LineLine coverage
 1using System.Text.Json.Nodes;
 2
 3namespace Elsa.Api.Client.Shared.Models;
 4
 5/// <summary>
 6/// Represents an expected status code in the FlowSendHttpRequest activity.
 7/// </summary>
 8public class HttpStatusCodeCase
 9{
 10    /// <summary>
 11    /// The HTTP status code to match.
 12    /// </summary>
 013    public int StatusCode { get; set; }
 14
 15    /// <summary>
 16    /// The activity to execute when the HTTP status code matches.
 17    /// </summary>
 018    public JsonObject? Activity { get; set; }
 19}

Methods/Properties

get_StatusCode()
get_Activity()