public async Task ChangePasswordAsyncOk(string userName, string currentPassword, string newPassword)
        {
            //Arrange
            IIdentityProfileManager profileManager = new FakeProfileManager(fakeIdentityContext.UserManager, users);
            //Act
            IdentityResult result = await profileManager.ChangePasswordAsync(userName, currentPassword, newPassword);

            //Assert
            Assert.True(result.Succeeded);
        }
        public async Task GetUserAsync(string username)
        {
            //Arrange
            IIdentityProfileManager profileManager = new FakeProfileManager(fakeIdentityContext.UserManager, users);
            //Act
            User user = await profileManager.GetUserAsync(username);

            //Assert
            Assert.NotNull(user);
            Assert.Equal(username, user.Username);
        }
        public async Task ChangePasswordAsyncFaild(string userName, string currentPassword, string newPassword)
        {
            //Arrange
            IIdentityProfileManager profileManager = new FakeProfileManager(fakeIdentityContext.UserManager, users);
            //Act
            IdentityResult result = await profileManager.ChangePasswordAsync(userName, currentPassword, newPassword);

            string error = result.Errors.FirstOrDefault().Code;

            //Assert
            Assert.False(result.Succeeded);
            Assert.Equal("PasswordMismatch", error);
        }
        public async Task UserUpdateAsync()
        {
            //Arrange
            IIdentityProfileManager profileManager = new FakeProfileManager(fakeIdentityContext.UserManager, users);
            User user = new User {
                Username = "******", Email = "*****@*****.**"
            };
            //Act
            IdentityResult result = await profileManager.UserUpdateAsync(user);

            //Assert
            Assert.True(result.Succeeded);
        }