Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I need to write a VS unit testing for the public method which present in the classA.
ClassA dont have default constructor, it is having parameterzed constructor; parameter as Web Page.
As to write VS unit testing for the method, we need to create web page and create instance by passing the webpage and write for the public. My question here is how to create web page and pass?

Kindly help on this

Note:
In the parameterzed constructor, the code written like below,
- Wepage.Mappath
- webpage.Request.Url


Thanks,
Kamal
Posted
Updated 14-May-14 22:58pm
v2

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