public When_asking_the_service_for_a_user_by_account_name() { _context = new PredictabullEntities(); _repository = new UserRepository(_context); }
public UserRepository(PredictabullEntities context) { _context = context; }
public WhenGettingUserByAccount() { _context = new PredictabullEntities(); _repository = new UserRepository(_context); }
//private readonly UserRepository _userRepository; public When_asking_the_service_for_user_preferences() { var context = new PredictabullEntities(); //_userRepository = new UserRepository(_context); _repository = new PreferenceRepository(context); }
public PreferenceRepository(PredictabullEntities context) { _context = context; _context.Configuration.LazyLoadingEnabled = false; }