【发布时间】:2009-03-04 10:06:37
【问题描述】:
我的控制器类上有一个ActionFilter。 OnActionExecuting 方法在 Web 应用程序中调用控制器的操作时被调用。
现在我在 UnitTest 中调用 Action:
NiceController niceController = new NiceController();
ActionResult result = niceController.WhateverAction();
有没有办法调用 ActionFilter?
【问题讨论】: