Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Testing EventHub with EventProcessorHost

$
0
0

I know it is not directly related to the EventHub but to the testing of asynchronous processes, but I'm sure you also solved this problem.

I want to test the EventHub solution with both, senders and receivers. Receivers are implemented with EventProcessorHost.

If it is implemented with Direct receiver, the testing is straightforward:

  1. call a send message
  2. call a receive message
  3. compare both messages.

But for EventProcessorHost it doesn't work.

  1. call a send message...

- but there is no call to receive. The receive is implemented a s callback to ProcessEventsAsync.

Additional complexity is the ProcessEventsAsync does not return an EventData.

Do you have an idea how to implement testing? Maybe there are samples for it?


Leonid Ganeline [BizTalk MVP]



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>