Database Reference
In-Depth Information
We see that the command message is passed to .OnMessage<SendMes-
sage>(command) and ResponseMessage in reply, with the state being set to Com-
pleteMyWCFClient . When calling the unit test in Debug, we can even pass this mes-
sage in the handler and see how it behaves.
This allows us to design and debug the handler functionality in the unit test code. There
are many rules that can be used when testing the handler or saga. For instance, Expec-
tNotReply where the handler does not reply with a specific message.
To get information on what is available in NServiceBus.Testing , we can:
• Try to enter something and hover the mouse over IntelliSense
• Read the documentation at http://www.nudoq.org/#!/Packages/NSer-
viceBus.Testing/NServiceBus.Testing/Handler(T)
• To read the code in GitHub, refer to https://github.com/Particular/NServiceBus/
blob/develop/src/NServiceBus.Testing/Handler.cs
Search WWH ::




Custom Search