Example #1
0
            public void PublishesEventToTransport()
            {
                var processKey = Guid.NewGuid();

                ProcessTracker.HandleProcessData(processKey, Messages.ProcessDataType.STDOUT, "This is STDOUT");

                var expectedProcessDataEvent = new ProcessDataEvent(processKey, ProcessDataType.STDOUT, "This is STDOUT");

                Transport.Received(1).PublishEventAsync <ProcessDataEvent>("processData", MatchProcessDataEvent(expectedProcessDataEvent));
            }