-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: PKSPMR
Message 1 in Discussion

 
Hi, 
I am new to unit testing. Started looking into nUnit and nUnitASP. I am kind of 
confused how programmers use these 2 tools with asp.net apps. We started 
creating a website from scratch using asp.net 2.0 c#. We are using n-tier 
model. UI, BLL, DAL. When the user logs in, in global.asax - session start 
event, calling BLL - getUserdata method which inturn calls DAL - getdata 
method. GetData method gets userid, name, client etc from database, populates 
custom object and returns the object to BLL which in turn is returned in 
session_start event. Once object is created storing this custom object in 
session for further retrieval in rest of the app. 
My problem is when I create test scripts using nUnit, and debug it, the testing 
fails because it is erroring out at the line: in DAL layer where connection 
string is retreived from webconfig using 'ConfigurationManager'. - it says that 
System.TypeInitializationException. 
As far as I know, NUnitAsp is for unit testing ASP.NET code-behind only. So I 
am lost and I don't know how else to do unit testing of ASP.NET app.  
I appreciate your guidance and links or thoughts on this. 
Thanks, 
Katta

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to