Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }