< Summary

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

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace Elsa.Api.Client.Shared.Models;
 4
 5/// <summary>
 6/// Represents a position.
 7/// </summary>
 8public class Position
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="Position"/> class.
 12    /// </summary>
 13    [JsonConstructor]
 014    public Position()
 15    {
 016    }
 17
 18    /// <summary>
 19    /// Initializes a new instance of the <see cref="Position"/> class.
 20    /// </summary>
 21    /// <param name="x"></param>
 22    /// <param name="y"></param>
 023    public Position(double x, double y)
 24    {
 025        X = x;
 026        Y = y;
 027    }
 28
 29    /// <summary>
 30    /// Gets or sets the x coordinate.
 31    /// </summary>
 032    public double X { get; set; }
 33
 34    /// <summary>
 35    /// Gets or sets the y coordinate.
 36    /// </summary>
 037    public double Y { get; set; }
 38}