예제 #1
0
        public void TestFixtureSetUp()
        {
            _store = NewDocumentStore();

            var players = DataGenerator.CreatePlayerList();

            using (var bulkInsert = _store.BulkInsert())
            {
                foreach (var player in players)
                {
                    bulkInsert.Store(player);
                }
            }

            // nasty: we have to initialize the dynamic index
            using (var session = _store.OpenSession())
            {
                session.Query <Player>().Any();
            }

            WaitForIndexing(_store);
        }