示例#1
0
        public void PublishIncomingNotificationsViaWebSocket()
        {
            var cmdReq = new CommandRequest("cmd-req-name", "123123123");
            var cmdRes = new CommandResponse(cmdReq);
            var @event = new IntegrationEvent <CommandResponse>(cmdRes, IntegrationEventAction.Created);

            EventQueueManager.Publish(@event);
            Thread.Sleep(250);

            Buffer.Any(x => x != 0).ShouldBeTrue();
        }