public async Task Created_user_dto_should_match_fetched_by_id_dto()
        {
            var createdResult = await UserManagementApi.CreateUser(GetUniqueTestUser);

            var fetchResult = await UserManagementApi.GetUserById(createdResult.Data.First().Id);

            Assert.True(createdResult.Success);
            Assert.True(fetchResult.Success);
            Assert.Equal(createdResult.Data, fetchResult.Data);
        }
        public async Task Getting_user_by_multiple_params_should_work()
        {
            var createdResult = await UserManagementApi.CreateUser(GetUniqueTestUser);

            var userData = createdResult.Data.First();

            var fetchResult1 = await UserManagementApi.GetUserById(userData.Id);

            var fetchResult2 = await UserManagementApi.Search(new UsersTenantSearch(username : userData.Username));

            Assert.True(createdResult.Success);
            Assert.True(fetchResult1.Success);
            Assert.True(fetchResult2.Success);
        }
        public async Task User_should_be_updated()
        {
            var createdResult = await UserManagementApi.CreateUser(GetUniqueTestUser);

            var userDto = createdResult.Data.First();

            userDto.Email = "*****@*****.**";
            var updatedResult = await UserManagementApi.UpdateUser(userDto);

            var fetchResult = await UserManagementApi.GetUserById(userDto.Id);

            Assert.True(createdResult.Success);
            Assert.True(updatedResult.Success);
            Assert.True(fetchResult.Success);
            Assert.Equal(userDto.Email, fetchResult.Data.First().Email);
        }