using System; using Elsa.Workflows.Core.Activities; using Elsa.Workflows.Core.Services; namespace Elsa.IntegrationTests.Activities; public class IfThenWorkflow : WorkflowBase { private readonly Func _condition; public IfThenWorkflow(Func condition) { _condition = condition; } protected override void Build(IWorkflowBuilder workflow) { workflow.WithRoot(new If(_condition) { Then = new WriteLine("True!"), Else = new WriteLine("False!") }); } }