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