< Summary

Information
Class: Elsa.Api.Client.Resources.Alterations.Models.AlterationPlan
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/Alterations/Models/AlterationPlan.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 41
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_Alterations()100%210%
get_WorkflowInstanceFilter()100%210%
get_Status()100%210%
get_CreatedAt()100%210%
get_StartedAt()100%210%
get_CompletedAt()100%210%

File(s)

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

#LineLine coverage
 1using System.Text.Json.Nodes;
 2using Elsa.Api.Client.Resources.Alterations.Enums;
 3using Elsa.Api.Client.Shared.Models;
 4
 5namespace Elsa.Api.Client.Resources.Alterations.Models;
 6
 7/// <summary>
 8/// A plan that contains a list of alterations to be applied to a set of workflow instances.
 9/// </summary>
 10public class AlterationPlan : Entity
 11{
 12    /// <summary>
 13    /// The alterations to be applied.
 14    /// </summary>
 015    public ICollection<JsonObject> Alterations { get; set; } = new List<JsonObject>();
 16
 17    /// <summary>
 18    /// The IDs of the workflow instances that this plan applies to.
 19    /// </summary>
 020    public AlterationWorkflowInstanceFilter WorkflowInstanceFilter { get; set; } = new();
 21
 22    /// <summary>
 23    /// The status of the plan.
 24    /// </summary>
 025    public AlterationPlanStatus Status { get; set; }
 26
 27    /// <summary>
 28    /// The date and time at which the plan was created.
 29    /// </summary>
 030    public DateTimeOffset CreatedAt { get; set; }
 31
 32    /// <summary>
 33    /// The date and time at which the plan was started.
 34    /// </summary>
 035    public DateTimeOffset? StartedAt { get; set; }
 36
 37    /// <summary>
 38    /// The date and time at which the plan was completed.
 39    /// </summary>
 040    public DateTimeOffset? CompletedAt { get; set; }
 41}