Permalink
Browse files

fix some broken tests expecting a null userAuth parameter for bad log…

…ins.

Added new v3.60 OrmLite + Text .dlls
  • Loading branch information...
1 parent 6dcadcb commit 16980e7b812ac09f98ee32b97550a3960dac34d4 @mythz mythz committed Mar 6, 2012
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -149,6 +149,8 @@ public bool TryAuthenticate(string userName, string password, out UserAuth userA
//userId = userAuth.Id.ToString(CultureInfo.InvariantCulture);
return true;
}
+
+ userAuth = null;
return false;
}
@@ -184,9 +184,10 @@ public bool TryAuthenticate(string userName, string password, out UserAuth userA
var saltedHash = new SaltedHash();
if (saltedHash.VerifyHashString(password, userAuth.PasswordHash, userAuth.Salt))
{
- //userId = userAuth.Id.ToString(CultureInfo.InvariantCulture);
return true;
}
+
+ userAuth = null;
return false;
}
@@ -157,7 +157,7 @@ public void Can_login_with_user_created_CreateUserAuth(IUserAuthRepository userA
userAuth = userAuthRepository.GetUserAuthByUserName(registrationDto.Email);
AssertEqual(userAuth, registrationDto);
- string userId;
+ UserAuth userId;
var success = userAuthRepository.TryAuthenticate(registrationDto.UserName, registrationDto.Password, out userId);
Assert.That(success, Is.True);
Assert.That(userId, Is.Not.Null);

0 comments on commit 16980e7

Please sign in to comment.