I understand that this is not the correct way to unit test, but we have an ActionFilterAttribute on our base controller, which never starts during our unit tests. I know that we must test it ourselves, but we want to integrate it into our full testing to the end.
[ThemeModel] public class BaseController : Controller { public MyModel Context { get; set; } }
How do I integrate my attribute when we run a test on an inherited controller? I understand that attributes are not related to the controller and part of the mvc structure.
thanks...
source share