示例#1
0
文件: Users.cs 项目: webbsk/mvc3
 public static dynamic FindByToken(string token)
 {
     var db = new Users();
     return db.Single(where: "Token = @0", args: token);
 }
示例#2
0
 public RegistrationSpecs()
 {
     this.Describes("User Registration");
     _membership = new Users();
 }
示例#3
0
 public AccountController(ITokenHandler tokenStore)
     : base(tokenStore)
 {
     _users = new Users();
 }
示例#4
0
 public AuthenticationSpecs()
 {
     this.Describes("User Authentication");
     _membership = new Users();
 }
示例#5
0
 public AccountControllerTests()
 {
     this.Describes("Account Controller");
     _users = new Users();
     _controller = new AccountController(new FakeTokenStore());
 }