コード例 #1
0
 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;
 }
コード例 #2
0
 public void Initialize()
 {
     _context = new MoviepickerContext(DbConnectionFactory.CreateTransient());
     _userRepository = new UserRepository(_context);
     _accountController = new AccountController(_userRepository) { Configuration = new HttpConfiguration() };
 }