< Summary

Information
Class: Elsa.Api.Client.Resources.ActivityDescriptors.Models.Port
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/ActivityDescriptors/Models/Port.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 29
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_Name()100%210%
get_DisplayName()100%210%
get_Type()100%210%
get_IsBrowsable()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/ActivityDescriptors/Models/Port.cs

#LineLine coverage
 1using Elsa.Api.Client.Resources.ActivityDescriptors.Enums;
 2
 3namespace Elsa.Api.Client.Resources.ActivityDescriptors.Models;
 4
 5/// <summary>
 6/// Represents a port on an activity.
 7/// </summary>
 8public class Port
 9{
 10    /// <summary>
 11    /// Gets or sets the name of the port.
 12    /// </summary>
 013    public string Name { get; set; } = default!;
 14
 15    /// <summary>
 16    /// Gets or sets the display name of the port.
 17    /// </summary>
 018    public string? DisplayName { get; set; }
 19
 20    /// <summary>
 21    /// Gets or sets the type of the port.
 22    /// </summary>
 023    public PortType Type { get; set; }
 24
 25    /// <summary>
 26    /// Gets or sets the visibility of the port.
 27    /// </summary>
 028    public bool? IsBrowsable { get; set; } = true;
 29}