public void IsValidFalseAlreadyUsedTest()
        {
            _forgottenPassword.Use(5);
            var result = _forgottenPassword.IsValid(5);

            Assert.AreEqual(false, result);
        }
        public void IsValidFalseIsExpiredTest()
        {
            _forgottenPassword = new ForgottenPassword(new Guid(ForgottenPasswordGuid));
            Thread.Sleep(2000);

            var result = _forgottenPassword.IsValid(0);

            Assert.AreEqual(false, result);
        }
        public void UpdatePasswordWithKeySuccessfulTest()
        {
            _user.AddPasswordResetRequest(_forgottenPassword, 5);
            _user.UpdatePasswordWithKey(_forgottenPassword.Key, 5, "Password2");

            var result         = _forgottenPassword.IsValid(5);
            var validateResult = _user.ValidatePassword("Password2");

            Assert.AreEqual(false, result);
            Assert.AreEqual(true, validateResult);
        }