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

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