5 implementations of IUserValidator
Microsoft.AspNetCore.Identity.Specification.Tests (3)
IdentitySpecificationTestBase.cs (1)
138private sealed class AlwaysBadValidator : IUserValidator<TUser>, IRoleValidator<TRole>,
UserManagerSpecificationTests.cs (2)
140private sealed class AlwaysBadValidator : IUserValidator<TUser>, 156private sealed class EmptyBadValidator : IUserValidator<TUser>,
Microsoft.AspNetCore.Identity.Test (1)
IdentityBuilderTest.cs (1)
271private class MyUberThingy : IUserValidator<PocoUser>, IPasswordValidator<PocoUser>, IRoleValidator<PocoRole>, IUserStore<PocoUser>, IRoleStore<PocoRole>
Microsoft.Extensions.Identity.Core (1)
UserValidator.cs (1)
17public class UserValidator<TUser> : IUserValidator<TUser> where TUser : class
21 references to IUserValidator
Microsoft.AspNetCore.Identity (3)
AspNetUserManager.cs (2)
25/// <param name="userValidators">A collection of <see cref="IUserValidator{TUser}"/> to validate users against.</param> 34IEnumerable<IUserValidator<TUser>> userValidators,
IdentityServiceCollectionExtensions.cs (1)
93services.TryAddScoped<IUserValidator<TUser>, UserValidator<TUser>>();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
src\Identity\test\Shared\MockHelpers.cs (2)
40var userValidators = new List<IUserValidator<TUser>>(); 41var validator = new Mock<IUserValidator<TUser>>();
Microsoft.AspNetCore.Identity.InMemory.Test (2)
src\Identity\test\Shared\MockHelpers.cs (2)
40var userValidators = new List<IUserValidator<TUser>>(); 41var validator = new Mock<IUserValidator<TUser>>();
Microsoft.AspNetCore.Identity.Test (4)
IdentityBuilderTest.cs (2)
120var thingy = services.BuildServiceProvider().GetRequiredService<IUserValidator<PocoUser>>() as MyUberThingy; 186var userValidator = provider.GetRequiredService<IUserValidator<PocoUser>>() as UserValidator<PocoUser>;
src\Identity\test\Shared\MockHelpers.cs (2)
40var userValidators = new List<IUserValidator<TUser>>(); 41var validator = new Mock<IUserValidator<TUser>>();
Microsoft.Extensions.Identity.Core (10)
IdentityBuilder.cs (2)
82/// Adds an <see cref="IUserValidator{TUser}"/> for the <see cref="UserType"/>. 88=> AddScoped(typeof(IUserValidator<>).MakeGenericType(UserType), typeof(TValidator));
IdentityServiceCollectionExtensions.cs (1)
40services.TryAddScoped<IUserValidator<TUser>, UserValidator<TUser>>();
UserManager.cs (7)
63/// <param name="userValidators">A collection of <see cref="IUserValidator{TUser}"/> to validate users against.</param> 72IEnumerable<IUserValidator<TUser>> userValidators, 89foreach (var v in userValidators) 155/// The <see cref="IUserValidator{TUser}"/> used to validate users. 157public IList<IUserValidator<TUser>> UserValidators { get; } = new List<IUserValidator<TUser>>(); 2310foreach (var v in UserValidators)