Hi Guys,
Has anybody mocked Request.Form in NMock2. I found a sample for MOQ but dont know how to translate that in NMock2.
var request = Mock.Get(controller.Request)
request.Setup(r => r.Form).Returns(delegate()
{
var nv = new NameValueCollection();
nv.Add("UserName","SomeUser");
nv.Add("Email","[email protected]");
return nv
}
Any help is much appreciated.
Thanks,
Raja