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:
- call a send message
- call a receive message
- compare both messages.
But for EventProcessorHost it doesn't work.
- 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]