* Fix test failure

This commit is contained in:
ryanbrandenburg 2015-12-16 17:21:25 -08:00
parent 6a16681ed4
commit 70f9431e7f
1 changed files with 3 additions and 0 deletions

View File

@ -1,8 +1,10 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Text.Encodings.Web;
using Microsoft.AspNet.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.WebEncoders.Testing;
using Microsoft.Net.Http.Headers;
using Newtonsoft.Json;
@ -18,6 +20,7 @@ namespace SimpleWebSite
.AddAuthorization()
.AddFormatterMappings(m => m.SetMediaTypeMappingForFormat("js", new MediaTypeHeaderValue("application/json")))
.AddJsonFormatters(j => j.Formatting = Formatting.Indented);
services.AddSingleton<UrlEncoder, UrlTestEncoder>();
}
public void Configure(IApplicationBuilder app)