public PreferencesController(IPreferenceRepository prefRepository,
            IUserRepository userRepository,
            IPreferenceServices prefServices)
        {
            _prefRepository = prefRepository;
            _prefServices = prefServices;

            User u = userRepository.GetByUsername(System.Web.HttpContext.Current.User.Identity.Name);
            if (u == null) return;
            _currentUserId = u.UserId;
        }
 public void RunAfterEachTestBase()
 {
     _systemUnderTest = null;
 }
 public PreferencesController(IAccountServices accountServices, IPreferenceServices preferenceServices)
 {
     _accountServices = accountServices;
     _preferenceServices = preferenceServices;
 }