FormDataCollectionExtensions (CreateActionContextForModelBinding) uses an incomplete HttpControllerContext, with only the configuration set (it calls the unit test-only constructor). Consumers normally expect (as an invariant) that request context, request, controller descriptor and controller are all set; attempts to access these properties during model binding in this case will return null unexpectedly.
↧