We have a controller action like:
public ActionResult Index()
{
var s = new DHXScheduler();
...
that throws the following exception when running in a unit test:
Any suggestion on how to correct this?
Thanks!
We have a controller action like:
public ActionResult Index()
{
var s = new DHXScheduler();
...
that throws the following exception when running in a unit test:
Any suggestion on how to correct this?
Thanks!
Hello,
try to specify urls for the component manually:s.Codebase = "someUrl";
s.SaveAction = "someUrl";
s.DataAction = "someUrl";
If you not specify custom url for codebase and ajax actions, component tries to resolve them automatically using VirtualPathUtility. It fails in test environment. We’ll fix an issue from our side, but for now the solution with custom urls should work