public void Setup() { // Create a new context. _context = new DAL.Data.Context(); // Reset the database. _context.Database.ExecuteSqlCommand("DELETE FROM Outcomes"); // Insert dummy data. // Create the repository. _uut = new OutcomeRepository(_context); }
public void Setup() { // Create a new context. _context = new DAL.Data.Context(); // Reset the database. Dispose(); // Insert dummy data. // Create the repository. _uut = new UserRepository(_context); }