I really like the idea of "one model in one model" Fubu MVC. The controller will look something like this.
public class MyController
{
public OutputModel MyAction(InputModel inputModel)
{
}
}
and the service locator will automatically fill in all the necessary dependencies in the constructor.
This makes the controller very easy to test.
So my question is: how would you go about setting up asp.net mvc to provide this simplicity in controllers?
source
share