public void Initialize() { var configuration = new HttpConfiguration(); _context = new MoviepickerContext(DbConnectionFactory.CreateTransient()); _userRepository = new UserRepository(_context); _accountController = new AccountController(_userRepository) { Configuration = configuration }; TestStartupConfiguration.Context = _context; TestStartupConfiguration.UserRepository = _userRepository; TestStartupConfiguration.HttpConfiguration = configuration; }
public void Initialize() { _context = new MoviepickerContext(DbConnectionFactory.CreateTransient()); _userRepository = new UserRepository(_context); _accountController = new AccountController(_userRepository) { Configuration = new HttpConfiguration() }; }