We have a requirement to be able to create an MVC web page which will show the current number of messages (queue depth) on a number of MSMQ queues.
We also use a product called Nagios to monitor system performance, and want to expose this information to Nagios via a URL.
A controller is therefore needed that will take the name of the queue from the url, translate this into a full queue URI (using a web config file) and return the current number of messages on that queue.
The solution should be minimally invasive, and have little or no impact on the performance of the queue itself.
The solution should be written in c# .net 4.0 and should be accompanied with relevant NUnit Unit tests.
Any mocking of MSMQ should be done with Microsoft Moles, however we are happy for IOC techniques to be employed to prevent this from being a requirement.
Please read the project first and write the word "Understood". Also write your steps and suggestions to complete the project with a short description of what you understood.