I have created a custom ActionFilterAttribute named ThrottleFilter. It has the scope of preventing the user of making too many requests at the same time ( No more than 4 calls can be run for a specific action in a span of 10 seconds). I use it to decorate some specific actions in the controller.
It works fine, but my dilemma is : how could I write a test for it? (I have not added code as it's not a a few lines and I guess the solution is more general - but I can provide it if necessary);