private async Task <MongoFixture> hitMongo(MongoFixture fixture) { await fixture.Start(); var db = new MongoClient("mongodb://localhost:" + fixture.Ports.Single()) .GetDatabase(Guid.NewGuid().ToString()); await db.CreateCollectionAsync("test"); await db.GetCollection <Foo>("test") .InsertManyAsync(Enumerable.Range(0, 2000).Select(i => new Foo { Bar = i })); return(fixture); }