Is this class something that your Presenter is generating?  Or is it being
provided to your presenter by another source (Repository.. Proxy) which
would have been provided to the presenter as a mock?

If it's the 1st then you would want to capture the instance and assert
against it.  In this case you are only going to be using rhino mocks to get
you the actual object.

If its the 2nd then you have control over the source instance and all you do
is once again capture the value that was passed to your view and assert that
its the same instance you passed to the presenter in the first place.  Of
course if you make any changes and you can't do a simple assertion you will
need to assert each property.

On Fri, Dec 12, 2008 at 6:52 PM, [email protected] <
[email protected]> wrote:

>
> what happens when we mock the View (in MVP) and the presenter sends a
> class to the View?
>
> using Rhino Mocks, how does one check that this class has the right
> data in it?  Is mocking even the correct tool to be using for this?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino.Mocks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/RhinoMocks?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to