How to use real WCF services instead of mocking them

77 views
Skip to first unread message

Sai Karthik

unread,
May 7, 2013, 2:16:38 AM5/7/13
to Rhino.Mocks
Hi,

I have a application where WCF services constitute datalayer, and
controller calls class in datalayer, which in turn calls WCF service.
All these days I have been mocking the datalayer class to return stub
response, but I today I have let the controller call the datalayer so
that actual service will be called. But this has failed, since the
proxy service object was null.

Is there a way I can see proxy service object being available, while I
run my unit test using rhino mocks.

Reginald Blue

unread,
May 12, 2013, 10:35:41 AM5/12/13
to rhino...@googlegroups.com
There's no technical reason you can't mock some pieces and not others, however, it's not clear why it wouldn't work for you.  Can you show how you're initializing your class under test?



--
You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhinomocks+...@googlegroups.com.
To post to this group, send email to rhino...@googlegroups.com.
Visit this group at http://groups.google.com/group/rhinomocks?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages