public void Change_Password_Displays_View_With_Temp_Password()
        {
            var accountController = new AccountController(_memberShipMock.Object);
            ActionResult result = accountController.ChangePassword("tempPassword","tempUser");

            Assert.That(((ViewResult)result).ViewData.Model, Is.TypeOf<UserInformationView>());
            Assert.That(((UserInformationView)((ViewResult)result).ViewData.Model).Password, Is.EqualTo("tempPassword"));
            Assert.That(accountController.ViewBag.PageTitle, Is.EqualTo("Change Password"));
        }
        public void Change_Password_Displays_Success_When_Password_Changed()
        {
            var userInformation = new UserInformationView { UserName = "******", Password = "******", ChangePassword = "******", ConfirmPassword = "******" };
            _memberShipMock.Setup(x => x.ChangePassword(userInformation.UserName, userInformation.Password, userInformation.ChangePassword)).Returns(true);
            var accountController = new AccountController(_memberShipMock.Object);
            ActionResult result = accountController.ChangePassword(userInformation);

            Assert.That(result, Is.TypeOf<ViewResult>());
            Assert.That(((ViewResult)result).ViewName,Is.EqualTo("Login"));
        }