1 instantiation of IdentityUserWithGenerics
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
UserStoreWithGenericsTest.cs (1)
47
return new
IdentityUserWithGenerics
16 references to IdentityUserWithGenerics
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (16)
UserStoreWithGenericsTest.cs (16)
13
public class UserStoreWithGenericsTest : IdentitySpecificationTestBase<
IdentityUserWithGenerics
, MyIdentityRole, string>, IClassFixture<ScratchDatabaseFixture>
36
services.AddSingleton<IUserStore<
IdentityUserWithGenerics
>>(new UserStoreWithGenerics((ContextWithGenerics)context, "TestContext"));
44
protected override
IdentityUserWithGenerics
CreateTestUser(string namePrefix = "", string email = "", string phoneNumber = "",
63
protected override void SetUserPasswordHash(
IdentityUserWithGenerics
user, string hashedPassword)
68
protected override Expression<Func<
IdentityUserWithGenerics
, bool>> UserNameEqualsPredicate(string userName) => u => u.UserName == userName;
73
protected override Expression<Func<
IdentityUserWithGenerics
, bool>> UserNameStartsWithPredicate(string userName) => u => u.UserName.StartsWith(userName);
100
var
user = CreateTestUser();
128
var
user = CreateTestUser();
129
var
user2 = CreateTestUser();
157
var
user = CreateTestUser();
199
public class UserStoreWithGenerics : UserStore<
IdentityUserWithGenerics
, MyIdentityRole, ContextWithGenerics, string, IdentityUserClaimWithIssuer, IdentityUserRoleWithDate, IdentityUserLoginWithContext, IdentityUserTokenWithStuff, IdentityRoleClaimWithIssuer>
208
protected override IdentityUserRoleWithDate CreateUserRole(
IdentityUserWithGenerics
user, MyIdentityRole role)
218
protected override IdentityUserClaimWithIssuer CreateUserClaim(
IdentityUserWithGenerics
user, Claim claim)
223
protected override IdentityUserLoginWithContext CreateUserLogin(
IdentityUserWithGenerics
user, UserLoginInfo login)
235
protected override IdentityUserTokenWithStuff CreateUserToken(
IdentityUserWithGenerics
user, string loginProvider, string name, string value)
324
public class ContextWithGenerics : IdentityDbContext<
IdentityUserWithGenerics
, MyIdentityRole, string, IdentityUserClaimWithIssuer, IdentityUserRoleWithDate, IdentityUserLoginWithContext, IdentityRoleClaimWithIssuer, IdentityUserTokenWithStuff>