Yes, you need to do apply the "desing for testability" pattern and mock the
configuration storage.

This means that your datalayer doesn't read connection string directly from
web.config file but from a different class.
In production this class will read data from web.config, in test enviroment
will read setting from another location.

HTH
makka

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

Reply via email to