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 }); }
public OrdersController(BackendDb context, IConfiguration configuration) { _context = context; _configuration = configuration; }
public RegistroUsuariosController(BackendDb db, PasswordHasher hasher) { this.db = db; this.hasher = hasher; }
public AutenticacionController(BackendDb db, PasswordHasher hasher) { this.db = db; this.hasher = hasher; }