< Summary

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

File(s)

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

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace Elsa.Api.Client.Shared.Models;
 4
 5/// <summary>
 6/// Represents designer metadata for an activity.
 7/// </summary>
 8public class ActivityDesignerMetadata
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="ActivityDesignerMetadata"/> class.
 12    /// </summary>
 13    [JsonConstructor]
 014    public ActivityDesignerMetadata()
 15    {
 16
 017    }
 18
 19    /// <summary>
 20    /// Initializes a new instance of the <see cref="ActivityDesignerMetadata"/> class.
 21    /// </summary>
 22    /// <param name="x">The x coordinate of the activity.</param>
 23    /// <param name="y">The y coordinate of the activity.</param>
 24    /// <param name="width">The width of the activity.</param>
 25    /// <param name="height">The height of the activity.</param>
 026    public ActivityDesignerMetadata(double x, double y, double width, double height) : this(new(x, y), new(width, height
 27    {
 028    }
 29
 30    /// <summary>
 31    /// Initializes a new instance of the <see cref="ActivityDesignerMetadata"/> class.
 32    /// </summary>
 33    /// <param name="position">The position of the activity.</param>
 34    /// <param name="size">The size of the activity.</param>
 035    public ActivityDesignerMetadata(Position position, Size size)
 36    {
 037        Position = position;
 038        Size = size;
 039    }
 40
 41    /// <summary>
 42    /// Gets or sets the position of the activity.
 43    /// </summary>
 044    public Position Position { get; set; } = new();
 45
 46    /// <summary>
 47    /// Gets or sets the size of the activity.
 48    /// </summary>
 049    public Size Size { get; set; } = new();
 50}