Exemplo n.º 1
0
        public void LoadsDomainAndLoginIfRememberLoginIsTrue()
        {
            SettingsHelper.SaveUserSettings(true, "some domain", "some user");
            _viewModel = GetNewViewModel();

            Assert.AreEqual(true, _viewModel.RememberLogin);
            Assert.IsFalse(string.IsNullOrWhiteSpace(_viewModel.Domain));
            Assert.IsFalse(string.IsNullOrWhiteSpace(_viewModel.UserName));
        }
Exemplo n.º 2
0
 public void Initialize()
 {
     _authenticatorStub = new DirectoryAuthenticatorStub(_domain, _userName, _password);
     _mainViewModel = new MainViewModel();
     _employees = new List<Employee>();
     _employeeRepository = new EmployeeRepositoryStub(_employees);
     _viewModel = GetNewViewModel();
     _passwordBox = new PasswordBox {Password = _password};
     SettingsHelper.ResetSettings();
 }