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
     });
 }
Example #2
0
 public OrdersController(BackendDb context, IConfiguration configuration)
 {
     _context       = context;
     _configuration = configuration;
 }
Example #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;
 }