public ActionResult RecoverPassword(RecoverPasswordModel recoverPasswordModel)
        {
            if (!ModelState.IsValid)
            {
                return View("RecoverPassword");
            }

            var email = new Email();
            email.SendForgotPasswordEmail(recoverPasswordModel.GetId(), recoverPasswordModel.Email);

            return View("ForgotPasswordEmailSent");
        }
        public void GetId_ReturnsUserIdBasedOnEmail()
        {
            const string email = "*****@*****.**";

            UserRegistrationModel userRegistrationModel = new UserRegistrationModel
            {
                Name = "nume",
                Email = email,
                Password = "******",
                ConfirmedPassword = "******",
            };
            userRegistrationModel.Save();

            UserEntity expectedUser = new UserRepository().GetBy(email);

            var actualUser = new RecoverPasswordModel
            {
                Email = email
            };

            Assert.AreEqual(expectedUser.Id, actualUser.GetId());
        }