المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Testing Classes without a Database?



C# Programming
03-29-2009, 01:14 PM
Hello All,

I have a question relating to testing methods in classes within the 3 tier architecture (ie Business Logic Layer, Data Access Layer, UI);
I am not asking for the complete solution here, but how can one go about testing the methods, values in both the BL and DA layer without using the User interface or the database. This is how my teacher wants me to do it, yet I have tried to a find a solution without avail unless I not include sql code in the database.
I have looked at NUnit Testing, although I believe that requires a dummy database to test it.
How can one go about doing this?

Many thanks.