PDA

View Full Version : [CLOSED] Unit testing controller methods that return Ext.Net.Mvc.PartialViewResult objects



leonardm
Aug 01, 2013, 6:14 PM

Vladimir
Aug 01, 2013, 6:54 PM
Your test enviroment should emulate http context to use PartialViewResult because HttpContext.Current.Items is used inside ctor

leonardm
Aug 01, 2013, 7:55 PM
Your test enviroment should emulate http context to use PartialViewResult because HttpContext.Current.Items is used inside ctor

Thanks. Can you provide a sample?

Vladimir
Aug 01, 2013, 8:00 PM
Thanks. Can you provide a sample?

Sample of what? I don't know your test enviroment and don't know how to emulate HttpContext.Current.
Can you explain what exactly do you want to do with ActionResult after GetDetails calling?

Daniil
Aug 06, 2013, 8:31 AM
The thread is related to this one.
http://forums.ext.net/showthread.php?25851