コード例 #1
0
        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);
        }
コード例 #2
0
 public void Setup()
 {
     _graphBuilder = new EventGraphBuilder();
     _builder      = new HistoryEventsBuilder();
     _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent());
     _workflow.SetupGet(w => w.WorkflowHistoryEvents).Returns(new WorkflowHistoryEvents(new [] { _graphBuilder.WorkflowStartedEvent() }));
 }
コード例 #3
0
 public void Setup()
 {
     _signal            = new Signal(SignalName, SignalInput, Mock.Of <IWorkflow>());
     _eventGraphBuilder = new EventGraphBuilder();
     _builder           = new HistoryEventsBuilder().AddWorkflowRunId(ParentWorkflowRunId);
     _builder.AddProcessedEvents(_eventGraphBuilder.WorkflowStartedEvent());
 }
コード例 #4
0
 public void Setup()
 {
     _graphBuilder = new EventGraphBuilder();
     _builder      = new HistoryEventsBuilder();
     _promoteId    = Identity.Lambda("PromoteEmployee").ScheduleId();
     _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent());
 }
コード例 #5
0
 public void Setup()
 {
     _graphBuilder   = new EventGraphBuilder();
     _builder        = new HistoryEventsBuilder();
     _confirmEmailId = Identity.Lambda("ConfirmEmail").ScheduleId();
     _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent());
 }
コード例 #6
0
 public void Setup()
 {
     _graphBuilder      = new EventGraphBuilder();
     _builder           = new HistoryEventsBuilder();
     _sendForApprovalId = Identity.Lambda("SendForApproval").ScheduleId();
     _builder.AddProcessedEvents(_graphBuilder.WorkflowStartedEvent());
 }
コード例 #7
0
        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());
        }
コード例 #8
0
 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);
 }
コード例 #9
0
        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);
        }
コード例 #10
0
 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);
 }
コード例 #11
0
 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());
 }
コード例 #12
0
 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);
 }
コード例 #13
0
 public void Setup()
 {
     _eventGraphBuilder = new EventGraphBuilder();
     _eventsBuilder     = new HistoryEventsBuilder();
     _eventsBuilder.AddProcessedEvents(_eventGraphBuilder.WorkflowStartedEvent());
 }