< Summary

Information
Class: Elsa.Api.Client.Shared.Models.Endpoint
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Shared/Models/Endpoint.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 39
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%
.ctor(...)100%210%
get_ActivityId()100%210%
get_Port()100%210%

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace Elsa.Api.Client.Shared.Models;
 4
 5/// <summary>
 6/// Represents a connection between two activities.
 7/// </summary>
 8public class Endpoint
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="Endpoint"/> class.
 12    /// </summary>
 13    [JsonConstructor]
 014    public Endpoint()
 15    {
 016    }
 17
 18    /// <summary>
 19    /// Initializes a new instance of the <see cref="Endpoint"/> class.
 20    /// </summary>
 21    /// <param name="activityId">The activity identifier.</param>
 22    /// <param name="port">The port.</param>
 023    public Endpoint(string activityId, string? port = default)
 24    {
 025        ActivityId = activityId;
 026        Port = port;
 027    }
 28
 29    /// <summary>
 30    /// Gets or sets the activity identifier.
 31    /// </summary>
 32    [JsonPropertyName("activity")]
 033    public string ActivityId { get; set; } = default!;
 34
 35    /// <summary>
 36    /// Gets or sets the port.
 37    /// </summary>
 038    public string? Port { get; set; }
 39}