aspnetcore/test/Microsoft.AspNet.Server.Kes.../TestServiceContext.cs

20 lines
674 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 Microsoft.AspNet.Http.Internal;
using Microsoft.AspNet.Server.Kestrel;
namespace Microsoft.AspNet.Server.KestrelTests
{
public class TestServiceContext : ServiceContext
{
public TestServiceContext()
{
AppLifetime = new LifetimeNotImplemented();
Log = new TestKestrelTrace();
HttpContextFactory = new HttpContextFactory(new HttpContextAccessor());
DateHeaderValueManager = new TestDateHeaderValueManager();
}
}
}