If you want to test your DAL, I suggest you to do "real" test against a db.

If you want to test business logic using your DAL, mock/fake/stub you DAL types.

________________________________________
Från: [email protected] [[email protected]] för Dor Rotman 
[[email protected]]
Skickat: den 14 mars 2010 17:49
Till: nhusers
Ämne: [nhusers] How to mock DetachedCriteria?

Hello,
I need to mock the NH session to test my DAL.
Unfortunately, the DAL calls the
DetachedCriteria.GetExecutableCriteria method, and the session mock
will fail here.
So I'd like to mock/stub the DetachedCriteria object.
However, it is static and I'm using Rhino Mocks, which cannot mock
static objects.

Is there any way I can solve the GetExecutableCriteria problem?

Thanks,
Dor Rotman.

--
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.

-- 
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