public ActionResult ConfirmRegistration(string guid)
        {
            var registrationConfirmationModel = new RegistrationConfirmationModel();
            registrationConfirmationModel.Confirm(guid);

            return View("RegistrationConfirmationSuccessful");
        }
        public void Authenthicate_ExistentConfirmedEmailWrongPassword_ReturnsFalse()
        {
            RegistrationConfirmationModel registrationConfirmationModel = new RegistrationConfirmationModel();
            registrationConfirmationModel.Confirm(userRegistrationModel.Id.ToString());

            UserModel userModel = new UserModel()
            {
                Email = userRegistrationModel.Email,
                Password = "******"
            };

            var actual = userModel.Authenthicate();

            Assert.IsFalse(actual);
        }
        public void Authenthicate_ValidAndConfirmedUser_ReturnsTrue()
        {
            RegistrationConfirmationModel registrationConfirmationModel = new RegistrationConfirmationModel();

            registrationConfirmationModel.Confirm(userRegistrationModel.Id.ToString());

            UserModel userModel = new UserModel()
            {
                Email = userRegistrationModel.Email,
                Password = userRegistrationModel.Password
            };

            var actual = userModel.Authenthicate();

            Assert.IsTrue(actual);
        }
 public void TestInitialize()
 {
     registrationConfirmationModel = new RegistrationConfirmationModel();
 }