Beispiel #1
0
        public async Task TestAccountSettingsEdit()
        {
            var controller = new AccountController {
                ControllerContext = MockControllerContext()
            };
            var registerUser = new RegisterUserViewModel
            {
                Account = new Account(),
                About   = new About()
            };

            registerUser.Account.Email   = "*****@*****.**";
            registerUser.About.FirstName = "test";
            registerUser.About.LastName  = "test";
            registerUser.About.Gender    = "other";
            registerUser.About.Title     = "mr";
            var result = await controller.AccountSettingsEdit(registerUser);

            Assert.IsInstanceOf(typeof(RedirectToRouteResult), result);
        }