Esempio n. 1
0
        public ActionResult EditUser(string userId)
        {
            var existingUser = _getAdminAppUserByIdQuery.Execute(userId);

            return(PartialView("_EditUserModal", new EditUserModel
            {
                UserId = userId,
                Email = existingUser.Email,
                GlobalSettingsTabEnumerations = GetGlobalSettingsTabsWithUsersSelected()
            }));
        }
Esempio n. 2
0
        public void ShouldGetAdminAppUserById()
        {
            var testUser = SetupUsers(1).Single();

            var command = new GetAdminAppUserByIdQuery();

            var result = command.Execute(testUser.Id);

            result.Email.ShouldBe(testUser.Email);
            result.UserName.ShouldBe(testUser.UserName);
        }
Esempio n. 3
0
        public void ShouldGetAdminAppUserById()
        {
            var testUser = SetupUsers(1).Single();

            Scoped <AdminAppIdentityDbContext>(identity =>
            {
                var command = new GetAdminAppUserByIdQuery(identity);

                var result = command.Execute(testUser.Id);

                result.Email.ShouldBe(testUser.Email);
                result.UserName.ShouldBe(testUser.UserName);
            });
        }