Mock all instances of a class

4 views
Skip to first unread message

Weverton

unread,
Dec 28, 2009, 2:30:24 PM12/28/09
to Rhino.Mocks
Hi,

I have a test with 3 domain object of same class and I need to mock
the same method, by same way in all these objects. Do I need to mock
the 3 objects? Is there a way to mock the class, and then, all object
will call the mocked method??

Thanks,

Weverton

Tim Barcz

unread,
Dec 28, 2009, 2:42:36 PM12/28/09
to rhino...@googlegroups.com
"Do I need to mock the 3 objects?" Yes.


--

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





--
Tim Barcz
Microsoft C# MVP
Microsoft ASPInsider
http://timbarcz.devlicio.us
http://www.twitter.com/timbarcz

Reply all
Reply to author
Forward
0 new messages