Reacting to DI changes

This commit is contained in:
Pranav K 2015-11-13 11:31:02 -08:00
parent 221bf30492
commit 5ddab1ffc8
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ namespace MusicStore.Controllers
// IHttpContextAccessor is required for SignInManager, and UserManager
var context = new DefaultHttpContext();
context.Features.Set<IHttpAuthenticationFeature>(new HttpAuthenticationFeature() { Handler = new TestAuthHandler() });
services.AddInstance<IHttpContextAccessor>(
services.AddSingleton<IHttpContextAccessor>(
new HttpContextAccessor()
{
HttpContext = context,