< Summary

Information
Class: Elsa.Alterations.Core.Entities.AlterationPlan
Assembly: Elsa.Alterations.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Alterations.Core/Entities/AlterationPlan.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 42
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/modules/Elsa.Alterations.Core/Entities/AlterationPlan.cs

#LineLine coverage
 1using Elsa.Alterations.Core.Contracts;
 2using Elsa.Alterations.Core.Enums;
 3using Elsa.Alterations.Core.Models;
 4using Elsa.Common.Entities;
 5
 6namespace Elsa.Alterations.Core.Entities;
 7
 8/// <summary>
 9/// A plan that contains a list of alterations to be applied to a set of workflow instances.
 10/// </summary>
 11public class AlterationPlan : Entity
 12{
 13    /// <summary>
 14    /// The alterations to be applied.
 15    /// </summary>
 016    public ICollection<IAlteration> Alterations { get; set; } = new List<IAlteration>();
 17
 18    /// <summary>
 19    /// The IDs of the workflow instances that this plan applies to.
 20    /// </summary>
 021    public AlterationWorkflowInstanceFilter WorkflowInstanceFilter { get; set; } = new();
 22
 23    /// <summary>
 24    /// The status of the plan.
 25    /// </summary>
 026    public AlterationPlanStatus Status { get; set; }
 27
 28    /// <summary>
 29    /// The date and time at which the plan was created.
 30    /// </summary>
 031    public DateTimeOffset CreatedAt { get; set; }
 32
 33    /// <summary>
 34    /// The date and time at which the plan was started.
 35    /// </summary>
 036    public DateTimeOffset? StartedAt { get; set; }
 37
 38    /// <summary>
 39    /// The date and time at which the plan was completed.
 40    /// </summary>
 041    public DateTimeOffset? CompletedAt { get; set; }
 42}