private async Task AddApiScopes()
        {
            var apiScope = new ApiScope(_guidGenerator.Create(), "Test-ApiScope-Name-1");

            apiScope.AddUserClaim("Test-ApiScope-Claim-Type-1");
            await _apiScopeRepository.InsertAsync(apiScope);
        }
        private async Task <ApiScope> CreateApiScopeAsync(string name)
        {
            ApiScope apiScope = await _apiScopeRepository.GetByNameAsync(name);

            if (apiScope == null)
            {
                apiScope = await _apiScopeRepository.InsertAsync(
                    new ApiScope(
                        _guidGenerator.Create(),
                        name,
                        name + " API"
                        ),
                    autoSave : true
                    );
            }

            return(apiScope);
        }