public void ChangePasswordTest()
        {
            // Arrange
            MockRepository mocks = new MockRepository();
            IPersonalAccountService personnalAccountService = mocks.StrictMock<IPersonalAccountService>();
            ActionResult actual;
            PersonalAccountController target = null;

            using (mocks.Record())
            {

            }

            try
            {
                target = new PersonalAccountController(personnalAccountService);

                using (mocks.Playback())
                {
                    actual = target.ChangePassword();
                }

                Helpers.ControllerTestHelper.TestForEmptyViewAndModel(actual, target);
            }
            finally
            {
                if (target != null)
                {
                    target.Dispose();
                }
            }
        }
        public void LogOffTestWithFalseLogOff()
        {
            // Arrange
            MockRepository mocks = new MockRepository();
            IPersonalAccountService personnalAccountService = mocks.StrictMock<IPersonalAccountService>();
            ActionResult actual;

            using (mocks.Record())
            {
                Expect.Call(personnalAccountService.LogOffCurrentMember()).Return(false);
            }
            PersonalAccountController target = null;

            try
            {
                target = new PersonalAccountController(personnalAccountService);

                using (mocks.Playback())
                {
                    actual = target.LogOff();
                }

                Assert.AreEqual(0, target.ModelState.Count);
                //Assert result

                Assert.IsInstanceOfType(actual, typeof(RedirectToRouteResult));

                RedirectToRouteResult typedResult = (RedirectToRouteResult)actual;

                Assert.IsFalse(typedResult.Permanent);
                Assert.AreEqual("", typedResult.RouteName);

                Assert.IsTrue(typedResult.RouteValues.ContainsKey("area"));
                Assert.IsTrue(typedResult.RouteValues.ContainsKey("controller"));
                Assert.IsTrue(typedResult.RouteValues.ContainsKey("action"));

                Assert.AreEqual("", typedResult.RouteValues["area"]);
                Assert.AreEqual("FrontEnd", typedResult.RouteValues["controller"]);
                Assert.AreEqual("Index", typedResult.RouteValues["action"]);
            }
            finally
            {
                if (target != null)
                {
                    target.Dispose();
                }
            }
        }
        public void PersonalAccountControllerConstructorTest()
        {
            // Arrange
            MockRepository mocks = new MockRepository();
            IPersonalAccountService personnalAccountService = mocks.StrictMock<IPersonalAccountService>();

            using (mocks.Record())
            {

            }

            using (mocks.Playback())
            {
                PersonalAccountController target = new PersonalAccountController(personnalAccountService);
                target.Dispose();
            }
        }