Ejemplo n.º 1
0
        public void RT02230_GetNewPasswordEmail()
        {
            if (!_isForgotPasswordEmailHasSent)
            {
                RT02210_RequestNewPassword();
            }
            if (!_isForgotPasswordEmailHasSent)
            {
                Assert.Warn("Cannot run because test method RT02210_RequestNewPassword has failed");
            }

            WaitForNewMail(_mm.ClientUserDirectory, _waitMailTimeoutSeconds);
            _newPassword = _mm.GetPasswordFromEmail(
                _mm.ClientUserDirectory, MailManager.PasswordResetSubject);
            Assert.IsTrue(!string.IsNullOrEmpty(_newPassword),
                          @"Haven't got an email with temporary password");
        }