21 lines
782 B
C#
21 lines
782 B
C#
// 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.Extensions.DependencyInjection;
|
|
using Microsoft.Extensions.WebEncoders.Testing;
|
|
|
|
namespace Microsoft.AspNet.Mvc.FunctionalTests
|
|
{
|
|
public class MvcEncodedTestFixture<TStartup> : MvcTestFixture<TStartup>
|
|
where TStartup : new()
|
|
{
|
|
protected override void AddAdditionalServices(IServiceCollection services)
|
|
{
|
|
services.AddTransient<HtmlEncoder, HtmlTestEncoder>();
|
|
services.AddTransient<JavaScriptEncoder, JavaScriptTestEncoder>();
|
|
services.AddTransient<UrlEncoder, UrlTestEncoder>();
|
|
}
|
|
}
|
|
}
|