Пример #1
0
 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());
 }