Ejemplo n.º 1
0
        public AppliedSystemsUserManager(IUserStore <User, int> store, IAppliedSystemsPasswordHasher passwordHasher)
            : base(store)
        {
            if (passwordHasher == null)
            {
                throw new ArgumentNullException("passwordHasher");
            }

            _passwordHasher = passwordHasher;
        }
Ejemplo n.º 2
0
 public MockUserManager(IUserStore <User, int> store, IAppliedSystemsPasswordHasher passwordHasher)
     : base(store, passwordHasher)
 {
     _creationResult = IdentityResult.Failed();
 }
Ejemplo n.º 3
0
 public UserManagerBuilder WithPasswordHasher(IAppliedSystemsPasswordHasher passwordHasher)
 {
     _passwordHasher = passwordHasher;
     return(this);
 }
Ejemplo n.º 4
0
 public UserManagerBuilder()
 {
     _userStore      = new FakeUserStore().Build().Object;
     _passwordHasher = new FakePasswordHasher().Build().Object;
 }