public void Is_received_true() { _builder.AddProcessedEvents(_graphBuilder.WorkflowSignaledEvent(SignalName.ToUpper(), "input")); _workflow.SetupGet(w => w.WorkflowHistoryEvents).Returns(_builder.Result()); Assert.That(_signal.IsReceived(), Is.True); }
public void Setup() { _graphBuilder = new EventGraphBuilder(); _builder = new HistoryEventsBuilder(); _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent()); _workflow.SetupGet(w => w.WorkflowHistoryEvents).Returns(new WorkflowHistoryEvents(new [] { _graphBuilder.WorkflowStartedEvent() })); }
public void Setup() { _signal = new Signal(SignalName, SignalInput, Mock.Of <IWorkflow>()); _eventGraphBuilder = new EventGraphBuilder(); _builder = new HistoryEventsBuilder().AddWorkflowRunId(ParentWorkflowRunId); _builder.AddProcessedEvents(_eventGraphBuilder.WorkflowStartedEvent()); }
public void Setup() { _graphBuilder = new EventGraphBuilder(); _builder = new HistoryEventsBuilder(); _promoteId = Identity.Lambda("PromoteEmployee").ScheduleId(); _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent()); }
public void Setup() { _graphBuilder = new EventGraphBuilder(); _builder = new HistoryEventsBuilder(); _confirmEmailId = Identity.Lambda("ConfirmEmail").ScheduleId(); _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent()); }
public void Setup() { _graphBuilder = new EventGraphBuilder(); _builder = new HistoryEventsBuilder(); _sendForApprovalId = Identity.Lambda("SendForApproval").ScheduleId(); _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent()); }
public void Setup() { _graphBuilder = new EventGraphBuilder(); _builder = new HistoryEventsBuilder(); var signaledEvent = _graphBuilder.WorkflowSignaledEvent("name", "input", "externalWorkflowRunid", "externalWorkflowRunid"); _workflowSignaledEvent = new WorkflowSignaledEvent(signaledEvent); _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent()); }
public void Setup() { _graphBuilder = new EventGraphBuilder(); _builder = new HistoryEventsBuilder(); _activateUserId = Identity.Lambda("ActivateUser").ScheduleId(); _blockAccountId = Identity.Lambda("BlockAccount").ScheduleId(); _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent()); _builder.AddWorkflowRunId(WorkflowRunId); }
public void Setup() { _graphBuilder = new EventGraphBuilder(); _builder = new HistoryEventsBuilder(); _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent("input")); _builder.AddWorkflowRunId(ParentWorkflowRunId); _identity = Identity.Timer(TimerName); _timerFiredEvent = CreateTimerFiredEvent(_identity, _fireAfter); }
public void Setup() { _graphBuilder = new EventGraphBuilder(); _builder = new HistoryEventsBuilder(); _submitToAccount = Identity.Lambda(SubmitToAccount).ScheduleId(); _sendBackToEmployee = Identity.Lambda(SendBackToEmployee).ScheduleId(); _approvalTimedout = Identity.Lambda(ApprovalTimedout).ScheduleId(); _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent()); _builder.AddWorkflowRunId(WorkflowRunId); }
public void Setup() { _identity = Identity.New(WorkflowName, Version, PositionalName); _scheduleIdentity = _identity.ScheduleId(WorkflowRunId); _eventGraphBuilder = new EventGraphBuilder(); _builder = new HistoryEventsBuilder().AddWorkflowRunId(WorkflowRunId); _builder.AddProcessedEvents(_eventGraphBuilder.WorkflowStartedGraph("input").ToArray()); _workflow = new Mock <IWorkflow>(); _workflow.SetupGet(w => w.WorkflowHistoryEvents) .Returns(_builder.Result()); }
public void Setup() { _graphBuilder = new EventGraphBuilder(); _builder = new HistoryEventsBuilder(); _promotionConfirmed = Identity.Lambda(PromotionConfirmed).ScheduleId(); _hrApprovalTimedout = Identity.Lambda(HRApprovalTimedout).ScheduleId(); _managerApprovalTimedout = Identity.Lambda(ManagerApprovalTimedout).ScheduleId(); _promotionTimedout = Identity.Lambda(PromotionTimedout).ScheduleId(); _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent()); _builder.AddWorkflowRunId(WorkflowRunId); }
public void Setup() { _eventGraphBuilder = new EventGraphBuilder(); _eventsBuilder = new HistoryEventsBuilder(); _eventsBuilder.AddProcessedEvents(_eventGraphBuilder.WorkflowStartedEvent()); }