Example #1
0
 private GetTokenInfo(ITokenRepository tokenRepository, IUserRepository userRepository, ITokenInfoExtractor tokenInfoExtractor,
                      string token, string appKey, string device)
 {
     _device             = device;
     _token              = token;
     _appKey             = appKey;
     _tokenRepository    = tokenRepository;
     _userRepository     = userRepository;
     _tokenInfoExtractor = tokenInfoExtractor;
     ValidateInstance();
     InvalidTokenExceptionCreator = () => InvalidTokenException.Create(_token, _appKey, _device);
 }
Example #2
0
 private ChangeMyPassword(ITokenRepository tokenRepository, IUserRepository userRepository,
                          string token, string currentPassword, string newPassword, string appKey, string device)
 {
     _tokenRepository = tokenRepository;
     _userRepository  = userRepository;
     _token           = token;
     _currentPassword = currentPassword;
     _newPassword     = newPassword;
     _appKey          = appKey;
     _device          = device;
     ValidateInstance();
     InvalidTokenExceptionCreator           = () => InvalidTokenException.Create(_token, _appKey, _device);
     InvalidCurrentPasswordExceptionCreator = () => InvalidCurrentPasswordException.Create();
 }