React to hosting change

This commit is contained in:
Hao Kung 2015-02-19 13:54:50 -08:00
parent 9fcf31fa43
commit 12541f7bba
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ namespace Microsoft.AspNet.Mvc.FunctionalTests
// TestHelper.CreateServices replaces the DefaultAssemblyProvider with a provider that
// limits the set of candidate assemblies to the executing application. For this test,
// we'll switch it back to using a filtered default assembly provider.
var services = HostingServices.Create(configuration: null);
var services = HostingServices.Create();
services.AddTransient<IAssemblyProvider, FilteredDefaultAssemblyProvider>();
var serviceProvider = TestHelper.CreateServices(nameof(ControllerDiscoveryConventionsWebSite), services);
var server = TestServer.Create(serviceProvider, _app);