Created
February 10, 2015 16:49
-
-
Save MikeLarned/1c27484d03cd8bc8e7f5 to your computer and use it in GitHub Desktop.
UserManager Test To Change Password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[TestFixture] | |
public class ChangeUserPasswordTests | |
{ | |
[Test] | |
public void Test() | |
{ | |
var context = new DataContext("CONNECTION STRING"); | |
var store = new UserStore<ApplicationUser>(context); | |
var manager = new UserManager<ApplicationUser>(store); | |
manager.UserValidator = new UserValidator<ApplicationUser>(manager) | |
{ | |
AllowOnlyAlphanumericUserNames = false, | |
}; | |
var result = manager.ChangePassword("USERIDGUID", "@oldpassword", "@newpassword"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment