Пример #1
0
 public PasswordManagementService(IPasswordEncryptionManager passwordEncryptionManager)
 {
     _passwordEncryptionManager = passwordEncryptionManager;
 }
 public PasswordManagementServiceTests()
 {
     _passwordEncryptionManager = A.Fake <IPasswordEncryptionManager>();
     _passwordManagementService = new PasswordManagementService(_passwordEncryptionManager);
 }
 public PasswordManagementService(IEnumerable <IExternalUserSource> userSources, IPasswordEncryptionManager passwordEncryptionManager)
 {
     _passwordEncryptionManager = passwordEncryptionManager;
     _userSources = userSources.GroupBy(x => x.Name).ToDictionary(x => x.Key, grouping => grouping.First());
 }
Пример #4
0
 public PasswordManagementService(IPasswordEncryptionManager passwordEncryptionManager)
 {
     _passwordEncryptionManager = passwordEncryptionManager;
 }
 public PasswordManagementServiceTests()
 {
     _passwordEncryptionManager = A.Fake<IPasswordEncryptionManager>();
     _passwordManagementService = new PasswordManagementService(_passwordEncryptionManager);
 }
 public PasswordManagementServiceTests()
 {
     _passwordEncryptionManager = A.Fake <IPasswordEncryptionManager>();
     _passwordManagementService = new PasswordManagementService(new List <IExternalUserSource>(), _passwordEncryptionManager);
 }