< Summary

Information
Class: Elsa.Alterations.AlterationTypes.CancelActivity
Assembly: Elsa.Alterations
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Alterations/AlterationTypes/CancelActivity.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 21
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_ActivityId()100%210%
get_ActivityInstanceId()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Alterations/AlterationTypes/CancelActivity.cs

#LineLine coverage
 1using Elsa.Alterations.Core.Abstractions;
 2using JetBrains.Annotations;
 3
 4namespace Elsa.Alterations.AlterationTypes;
 5
 6/// <summary>
 7/// Cancels an activity.
 8/// </summary>
 9[UsedImplicitly]
 10public class CancelActivity : AlterationBase
 11{
 12    /// <summary>
 13    /// The ID of the activity to be cancelled. If not specified, the activity instance ID will be used.
 14    /// </summary>
 015    public string? ActivityId { get; set; }
 16
 17    /// <summary>
 18    /// The ID of the activity instance to be cancelled. If specified, overrides <see cref="ActivityId"/>.
 19    /// </summary>
 020    public string? ActivityInstanceId { get; set; }
 21}