Ejemplo n.º 1
0
 public UsersMealRepoTests()
 {
     _appConfiguration = new AppConfiguration();
     _context          = new MyContext(_appConfiguration.PostgreSQL);
     _repository       = new UsersMealsRepository(_context);
     _context.Database.EnsureCreated();
 }
Ejemplo n.º 2
0
 public PostgreSQLRepositoryTests()
 {
     _appConfiguration  = new AppConfiguration();
     _context           = new MyContext(_appConfiguration.PostgreSQL);
     _repository        = new DbRepository(_context);
     _secRepository     = new UsersMealsRepository(_context);
     _workoutRepository = new WorkoutRepository(_context);
     _context.Database.EnsureCreated();
 }