internal virtual void EnsureSeedData()
        {
            var exampleData = new ExampleData();

            if (!this.configurationDbContext.IdentityResources.Any())
            {
                foreach (var resource in exampleData.GetIdentityResources())
                {
                    this.configurationDbContext.IdentityResources
                    .Add(resource.ToEntity());
                }
                this.configurationDbContext.SaveChanges();
            }

            if (!this.configurationDbContext.ApiResources.Any())
            {
                foreach (var resource in exampleData.GetApiResources())
                {
                    this.configurationDbContext.ApiResources
                    .Add(resource.ToEntity());
                }
                this.configurationDbContext.SaveChanges();
            }

            if (!this.configurationDbContext.Clients.Any())
            {
                foreach (var client in exampleData.GetClients())
                {
                    this.configurationDbContext.Clients.Add(client.ToEntity());
                }
                this.configurationDbContext.SaveChanges();
            }

            if (!this.userAccountDbContext.UserAccounts.Any())
            {
                foreach (var userAccount in exampleData
                         .GetUserAccounts(this.crypto, this.appOptions))
                {
                    this.userAccountDbContext.UserAccounts
                    .Add(userAccount.ToEntity());
                }
                this.userAccountDbContext.SaveChanges();
            }
        }