Updating tests to add options to services

This commit is contained in:
John Luo 2016-01-07 23:54:55 -08:00
parent c0800bea9f
commit 8afe28c05d
2 changed files with 2 additions and 0 deletions

View File

@ -230,6 +230,7 @@ namespace Microsoft.AspNet.Builder
private IServiceProvider CreateServices()
{
var services = new ServiceCollection();
services.AddOptions();
services.AddRouting();
return services.BuildServiceProvider();
}

View File

@ -1001,6 +1001,7 @@ namespace Microsoft.AspNet.Mvc.Routing
private static IServiceProvider CreateServices()
{
var services = new ServiceCollection();
services.AddOptions();
services.AddLogging();
services.AddRouting();
services.AddSingleton<UrlEncoder>(UrlEncoder.Default);