コード例 #1
0
 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
     });
 }
コード例 #2
0
ファイル: OrdersController.cs プロジェクト: pswg/docker-Task
 public OrdersController(BackendDb context, IConfiguration configuration)
 {
     _context       = context;
     _configuration = configuration;
 }
コード例 #3
0
 public RegistroUsuariosController(BackendDb db, PasswordHasher hasher)
 {
     this.db     = db;
     this.hasher = hasher;
 }
コード例 #4
0
 public AutenticacionController(BackendDb db, PasswordHasher hasher)
 {
     this.db     = db;
     this.hasher = hasher;
 }