< Summary

Information
Class: Elsa.Workflows.Handlers.EvaluateParentInputProperties
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Handlers/EvaluateParentInputProperties.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 15
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
HandleAsync()100%22100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Handlers/EvaluateParentInputProperties.cs

#LineLine coverage
 1using Elsa.Extensions;
 2using Elsa.Mediator.Contracts;
 3using Elsa.Workflows.Notifications;
 4
 5namespace Elsa.Workflows.Handlers;
 6
 7public class EvaluateParentInputProperties : INotificationHandler<InvokingActivityCallback>
 8{
 9    public async Task HandleAsync(InvokingActivityCallback notification, CancellationToken cancellationToken)
 10    {
 11        // Before invoking the parent activity, make sure its properties are evaluated.
 253912        if (!notification.Parent.GetHasEvaluatedProperties())
 3813            await notification.Parent.EvaluateInputPropertiesAsync();
 253914    }
 15}

Methods/Properties

HandleAsync()