private static void EnsureSeedClientData(IClientProvider clientProvider) { if (clientProvider != null) { Console.WriteLine("Clients being populated"); foreach (var client in Clients.Get().ToList()) { if (clientProvider.FindClientById(client.ClientId) == null) { clientProvider.Add(client); } } } else { Console.WriteLine("Clients already populated"); } }