First; I know that I should not need to test the internals of MVC but I REALLY need a suite a tests around data flowing into our system.
How can I, I hope without mocking all of HTTP context, test that objectA (form collection, dict, collection, object, etc) does or does not conform to objectAModel?
I'd like to not have to instantiate my controller or call the action. I simply want to test if my new object invalidates the modelstate.
I wish I could simply write
var modelState = new ModelBindingContext<objectAModel>().validate(objectA);