private void InsertPlayers() { using (var session = _store.OpenSession()) { var players = PlayerGenerator.GetPlayers(); foreach (var player1 in players) { session.Store(player1); } session.SaveChanges(); } WaitForIndexing(_store); }