Hi All,
Ours is a large Asp.net MVC application. We are using NUNIT for unit testing.
For now we are calling actual service functions to [SETUP] data (test data).
Kindly suggest options for generating test data for NUNIT without disturbing actual services and further actual database.
Thanks in advance.

Iftikar HussainRank #423 · 5.9K reputationPosted Jun 27, 2013, 3:18 AM EDT
Please provide me more details. What method you are trying do NUNIT and other details like return type and input parameter.
Regards,
Iftikar
shoab shah164 reputationPosted Jun 27, 2013, 3:27 AM EDT
Iftikar HussainRank #423 · 5.9K reputationPosted Jun 27, 2013, 3:34 AM EDT
Regards,
Iftikar
shoab shah164 reputationPosted Jun 27, 2013, 3:44 AM EDT
Following is the follow
NUNIT test case -> WCF client(classlib) -> WCF service
[Test]
public void TestAddBO()
{
BOclass obj = new BOclass();
...
...
var result = _serviceclient.AddBO(obj);
Assert.IsTrue(result.Success);
}
We wanna create test data for above method and similarly for GetList of BO objects as well
Iftikar HussainRank #423 · 5.9K reputationPosted Jun 27, 2013, 4:35 AM EDT
Please refer the below link.
http://forums.asp.net/t/1887724.aspx/1
http://stackoverflow.com/questions/7235455/how-to-mock-a-model-in-mvc3-when-using-rhino-mocks
Regards,
Iftikar