From 88f2d83846a032fd92cbd5195a63b04fd22a88a0 Mon Sep 17 00:00:00 2001 From: maliming Date: Wed, 13 May 2020 11:31:14 +0800 Subject: [PATCH] Update FakeAuthenticationMiddleware.cs --- .../Mvc/Authorization/FakeAuthenticationMiddleware.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Authorization/FakeAuthenticationMiddleware.cs b/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Authorization/FakeAuthenticationMiddleware.cs index a1f3e473ea..5ee6ec5c1f 100644 --- a/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Authorization/FakeAuthenticationMiddleware.cs +++ b/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Authorization/FakeAuthenticationMiddleware.cs @@ -4,19 +4,16 @@ using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Volo.Abp.DependencyInjection; -using Volo.Abp.Security.Claims; namespace Volo.Abp.AspNetCore.Mvc.Authorization { public class FakeAuthenticationMiddleware : IMiddleware, ITransientDependency { private readonly FakeUserClaims _fakeUserClaims; - private readonly ICurrentPrincipalAccessor _currentPrincipalAccessor; - public FakeAuthenticationMiddleware(FakeUserClaims fakeUserClaims, ICurrentPrincipalAccessor currentPrincipalAccessor) + public FakeAuthenticationMiddleware(FakeUserClaims fakeUserClaims) { _fakeUserClaims = fakeUserClaims; - _currentPrincipalAccessor = currentPrincipalAccessor; } public async Task InvokeAsync(HttpContext context, RequestDelegate next)