Hello,
I am in need of assistance trying to figure out how to 'Unit Test' my Event
Based Async Pattern (http://msdn2.microsoft.com/e7a34yad.aspx) web service
calls. Specifically how to test the event handler.
So as I see it, the auto generated web service proxy will create the custom
event arg class that is passed to the event handler. That is all in good,
the problem is that the custom event arg class is not publicly creatable. So
I can't create a mock object nor can I create an instance of it to populate
myself.
So there is no way that I can without hacking apart the reference.cs file
(which gets re-gened often enough to be a problem) and making the event arg
class publicly creatable.
Can MS provde any ideas on how I could unit test this? I tried creating a
'private accessor' and it gen'd correctly but I can't create an instance of
the accessor without having an instance of the eventarg class.
Thanks for any help in advance.
--
Rich