Esempio n. 1
0
        /// <summary>
        /// Перейти в настройки пользователя
        /// </summary>
        /// <returns></returns>
        public ActionResult UpdateAccount()
        {
            Account account = _accountLogic.GetAccount();

            return(account == null
                ? (ActionResult)RedirectToAction("Login", "Authentification")
                : View("UpdateAccount", new UserParameters(account)));
        }
Esempio n. 2
0
        public void AccountLogic_GetAccount()
        {
            //Act
            Account account = _accountLogic.GetAccount();

            //Assert
            Assert.NotNull(account);
            Assert.AreEqual(account.Email, _testAccount.Email);
        }