Click here to Skip to main content
15,879,096 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Need NUnit Test Case for the below Function. For the saem function If I Built the Datatable Inside the Function Test Case succeeds. If its comes from DB Test case fails.

public ActionResult GetCustomerInfo()
{
DataTable dtCustomerInfo = BL.rptCustomerInfo();
Session["dtCustomerInfo"] = dtCustomerInfo;
List<system.collections.arraylist> CustomerInfo = new List<system.collections.arraylist>();
foreach (DataRow dataRow in dtCustomerInfo.Rows)
{
System.Collections.ArrayList values = new System.Collections.ArrayList();
foreach (object value in dataRow.ItemArray)
values.Add(value);
CustomerInfo.Add(values);
}
var model = CustomerInfo;
return model;
}


Regards,
Kalaiselvan
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900