Esempio n. 1
0
        public void AnEventSubscriberHasBeenConfigured()
        {
            var processItemId = _workflowContext.ProcessItemId.ToString();

            _eventContext.Subscription = _containerContext.GetWorkflowEngineEventQueue()
                                         .SubscribeToEvents(x => String.Equals(x.ProcessItemId, processItemId))
                                         .SetupCallback((sender, args) =>
            {
                args.Notification.Should().NotBeNull();
                _eventContext.LastNotification = args.Notification;
                _eventListener.Set();
            });
        }