public void Initialize()
 {
     db      = new BackendDb(true);
     student = new User {
         Id      = 1,
         Name    = "test",
         Email   = "*****@*****.**",
         IsTutor = false
     };
     db.Users.Insert(student);
     db.Users.Insert(new User {
         Id      = 2,
         Email   = "*****@*****.**",
         Name    = "tutor test",
         IsTutor = true
     });
 }
Ejemplo n.º 2
0
 public OrdersController(BackendDb context, IConfiguration configuration)
 {
     _context       = context;
     _configuration = configuration;
 }
Ejemplo n.º 3
0
 public RegistroUsuariosController(BackendDb db, PasswordHasher hasher)
 {
     this.db     = db;
     this.hasher = hasher;
 }
 public AutenticacionController(BackendDb db, PasswordHasher hasher)
 {
     this.db     = db;
     this.hasher = hasher;
 }