public void SaveCanExecute_SetTimeout() { _viewModel.SetInteraction(_httpAccountInteraction); _viewModel.Url = "http://testsite.com"; _viewModel.Timeout = 120; Assert.AreEqual(_httpAccount.Timeout, _viewModel.Timeout); }
public void SaveCanExecute_UrlIsHttpAndUsernameIsSet_AskForPasswordLater_ReturnsTrue() { _viewModel.SetInteraction(_httpAccountInteraction); _viewModel.Url = "http://testsite.com"; _viewModel.Username = "******"; _viewModel.AskForPasswordLater = true; _viewModel.Password = "******"; Assert.IsTrue(_viewModel.SaveCommand.CanExecute(null)); }