Thanks John how do you mock your domain objects?  Do you have
interfaces on them and mock those interfaces?  And these are mapped to
nHibernate?

On Apr 30, 4:20 pm, John Davidson <[email protected]> wrote:
> I mock all my domain objects and then use an injectable repository to
> determine whether to use the nhibernate objects or the mocked objects as
> data sources. This lets us test most of the code without requiring a
> database connection. This means that it is possible to have Unit and
> Integration tests that are repeatable and quick.
>
> John Davidson
>
> On Fri, Apr 30, 2010 at 11:14 AM, José F. Romaniello <[email protected]
>
>
>
>
>
> > wrote:
> > You should map IGroup instead of Group but..........................
> > Why you would mock your domain objects?
> > How are you testing your controller?
> > It is not what most of the people do. I don't mock my domain objects, but
> > you can mock a concrete class with any Mock framework based on dynamic
> > subclassing (rhino mocks, moq). They have the same rules than NHibernate
> > (virtual methods....).
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "nhusers" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<nhusers%[email protected]­>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/nhusers?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "nhusers" 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 
> athttp://groups.google.com/group/nhusers?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.

Reply via email to