Hi All,
I am unit testing a WCF service.
The flow goes like this.
- Application(Client) insert command to the DB through Webservice1. This is done using duplex pattern.(with callbacks).
- WebService1 inserts the command to DB and this Webservice1 invokes another webservice2 about the arrival of new command.(Duplex pattern).
- Webservice2 then reads the command through Webservice3, executes, inserts the results and invoke the callback method on Webservice1 telling the command is executed.
- Webservice1 then invoke callback method on the Application and informs the arrival of result.
How can I Unit test such a service.
Please post any links where there are tutorials how to test callbacks.
Thanks,