< Summary

Information
Class: Elsa.Workflows.Signals.ScheduleChildActivity
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Signals/ScheduleChildActivity.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 11
Coverable lines: 11
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
.ctor(...)100%210%
.ctor(...)100%210%
get_Activity()100%210%
get_Input()100%210%
get_ActivityExecutionContext()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Signals/ScheduleChildActivity.cs

#LineLine coverage
 1namespace Elsa.Workflows.Signals;
 2
 3/// <summary>
 4/// Signaled when the scheduling of a child activity was requested.
 5/// </summary>
 6public class ScheduleChildActivity
 7{
 8    /// <summary>
 9    /// Signaled when the scheduling of a child activity was requested.
 10    /// </summary>
 11    /// <param name="activity">The child activity to schedule.</param>
 12    /// <param name="input">Input to pass to the child activity.</param>
 013    public ScheduleChildActivity(IActivity activity, IDictionary<string, object>? input = default)
 14    {
 015        Activity = activity;
 016        Input = input;
 017    }
 18
 19    /// <summary>
 20    /// Signaled when the scheduling of a child activity was requested.
 21    /// </summary>
 22    /// <param name="activityExecutionContext">The child activity execution context to schedule.</param>
 23    /// <param name="input">The scheduling options.</param>
 024    public ScheduleChildActivity(ActivityExecutionContext? activityExecutionContext, IDictionary<string, object>? input 
 25    {
 026        ActivityExecutionContext = activityExecutionContext;
 027        Input = input;
 028    }
 29
 30    /// <summary>The child activity to schedule.</summary>
 031    public IActivity? Activity { get; init; }
 32
 33    /// <summary>
 34    /// Input to pass to the child activity.
 35    /// </summary>
 036    public IDictionary<string, object>? Input { get; set;}
 37
 38    /// <summary>
 39    /// The child activity execution context to schedule.
 40    /// </summary>
 041    public ActivityExecutionContext? ActivityExecutionContext { get; init; }
 42}