Fix a broken MVC test

This commit is contained in:
Ryan Nowak 2017-10-25 23:29:35 -07:00
parent 736b49294d
commit d612072d1a
1 changed files with 3 additions and 0 deletions

View File

@ -3,7 +3,9 @@
using System;
using System.Text.Encodings.Web;
using Microsoft.AspNetCore.Dispatcher;
using Microsoft.AspNetCore.Routing;
using Microsoft.AspNetCore.Routing.Dispatcher;
using Microsoft.AspNetCore.Routing.Internal;
using Microsoft.AspNetCore.Routing.Tree;
using Microsoft.Extensions.DependencyInjection.Extensions;
@ -30,6 +32,7 @@ namespace Microsoft.Extensions.DependencyInjection
// Routing shares lots of infrastructure with the dispatcher.
services.AddDispatcher();
services.TryAddSingleton<IDefaultMatcherFactory, TreeMatcherFactory>();
services.TryAddTransient<IInlineConstraintResolver, DefaultInlineConstraintResolver>();
services.TryAddSingleton(UrlEncoder.Default);