Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Commit b2bf1a4

Browse files
committed
React to HttpAbstractions namespace changes
- aspnet/HttpAbstractions#549 and aspnet/HttpAbstractions#592 - clean up `using`s
1 parent f804c11 commit b2bf1a4

File tree

6 files changed

+3
-10
lines changed

6 files changed

+3
-10
lines changed

src/Microsoft.AspNetCore.Identity/IdentityServiceCollectionExtensions.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
using System;
55
using Microsoft.AspNetCore.Builder;
66
using Microsoft.AspNetCore.Http;
7-
using Microsoft.AspNetCore.Http.Internal;
87
using Microsoft.AspNetCore.Identity;
98
using Microsoft.Extensions.DependencyInjection.Extensions;
109

@@ -39,7 +38,7 @@ public static IdentityBuilder AddIdentity<TUser, TRole>(
3938
/// <param name="setupAction">An action to configure the <see cref="IdentityOptions"/>.</param>
4039
/// <returns>An <see cref="IdentityBuilder"/> for creating and configuring the identity system.</returns>
4140
public static IdentityBuilder AddIdentity<TUser, TRole>(
42-
this IServiceCollection services,
41+
this IServiceCollection services,
4342
Action<IdentityOptions> setupAction)
4443
where TUser : class
4544
where TRole : class

test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test/TestIdentityFactory.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using Microsoft.AspNetCore.Http;
5-
using Microsoft.AspNetCore.Http.Internal;
65
using Microsoft.EntityFrameworkCore;
76
using Microsoft.Extensions.DependencyInjection;
87

test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test/DbUtil.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using Microsoft.AspNetCore.Http;
5-
using Microsoft.AspNetCore.Http.Internal;
65
using Microsoft.EntityFrameworkCore;
76
using Microsoft.Extensions.DependencyInjection;
8-
using Xunit;
97

108
namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test
119
{

test/Microsoft.AspNetCore.Identity.Test/SignInManagerTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
using Microsoft.AspNetCore.Http;
1212
using Microsoft.AspNetCore.Http.Authentication;
1313
using Microsoft.AspNetCore.Http.Features.Authentication;
14-
using Microsoft.AspNetCore.Http.Internal;
1514
using Microsoft.Extensions.Options;
1615
using Moq;
1716
using Xunit;

test/Microsoft.AspNetCore.Identity.Test/UserManagerTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
using System.Threading;
99
using System.Threading.Tasks;
1010
using Microsoft.AspNetCore.Http;
11-
using Microsoft.AspNetCore.Http.Internal;
1211
using Microsoft.Extensions.DependencyInjection;
1312
using Moq;
1413
using Xunit;

test/Shared/UserManagerTestBase.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using System.Threading.Tasks;
1010
using Microsoft.AspNetCore.Builder;
1111
using Microsoft.AspNetCore.Http;
12-
using Microsoft.AspNetCore.Http.Internal;
1312
using Microsoft.AspNetCore.Testing;
1413
using Microsoft.AspNetCore.Testing.xunit;
1514
using Microsoft.Extensions.DependencyInjection;
@@ -1023,7 +1022,7 @@ public async Task SingleFailureLockout()
10231022
Assert.True(await mgr.IsLockedOutAsync(user));
10241023
Assert.True(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55));
10251024
IdentityResultAssert.VerifyLogMessage(mgr.Logger, $"User {await mgr.GetUserIdAsync(user)} is locked out.");
1026-
1025+
10271026
Assert.Equal(0, await mgr.GetAccessFailedCountAsync(user));
10281027
}
10291028

@@ -1769,7 +1768,7 @@ public async Task CanChangeEmailWithDifferentTokenProvider()
17691768
{
17701769
return;
17711770
}
1772-
var manager = CreateManager(context: null, services: null,
1771+
var manager = CreateManager(context: null, services: null,
17731772
configureServices: s => s.Configure<IdentityOptions>(
17741773
o => o.Tokens.ProviderMap["NewProvider2"] = new TokenProviderDescriptor(typeof(EmailTokenProvider<TUser>))));
17751774
manager.Options.Tokens.ChangeEmailTokenProvider = "NewProvider2";

0 commit comments

Comments
 (0)