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 HussainPosted Jun 27, 2013, 8:35 AM
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
shoab shahPosted Jun 27, 2013, 7:44 AM
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 HussainPosted Jun 27, 2013, 7:34 AM
Regards,
Iftikar
shoab shahPosted Jun 27, 2013, 7:27 AM
Iftikar HussainPosted Jun 27, 2013, 7:18 AM
Please provide me more details. What method you are trying do NUNIT and other details like return type and input parameter.
Regards,
Iftikar