Reacting to DI changes

This commit is contained in:
Pranav K 2015-08-07 10:50:25 -07:00
parent 152e4ef915
commit 982213e9e0
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ namespace Microsoft.AspNet.Mvc.ModelBinding.Test
var model = new Person();
var serviceProvider = new ServiceCollection()
.AddSingleton(typeof(IModelBinder))
.AddSingleton<IModelBinder, NullModelBinder>()
.BuildServiceProvider();
bindingContext.OperationBindingContext.HttpContext.RequestServices = serviceProvider;