public void When_invalid_password_in_signup_form_is_invalid_then_command_is_disabled_with_error_message()
            {
                SafeProviderForNonExistingUser.StubPasswordNameValidity(InvalidPassword, false, InvalidPasswordErrorMessage);

                SignUpViewModel.SignUpUserName        = ValidUserName;
                SignUpViewModel.SignUpPassword        = InvalidPassword;
                SignUpViewModel.SignUpConfirmPassword = InvalidPassword;

                if (CommandObserver.NumberOfEventsRecieved > 0)
                {
                    CommandObserver.AssertTheCommandBecameNonExecutable();
                }
                Assert.AreEqual(false, SignUpViewModel.SignUpCommand.CanExecute());
                ErrorMessagePropertyObserver.AssertProperyHasChanged(InvalidPasswordErrorMessage);
            }
 private void AssertTheCommandsMovedToInitialState()
 {
     _saveCommandObserver.AssertTheCommandBecameNonExecutable();
     _discardCommandObserver.AssertTheCommandBecameNonExecutable();
     _okayCommandObserver.AssertTheCommandBecameExecutable();
 }