コード例 #1
0
 public When_asking_the_service_for_a_user_by_account_name()
 {
     _context = new PredictabullEntities();
     _repository = new UserRepository(_context);
 }
コード例 #2
0
 public UserRepository(PredictabullEntities context)
 {
     _context = context;
 }
コード例 #3
0
 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;
 }