public async Task AsyncEnumeration() { EntityMapping.RegisterType(typeof(QueryableAsyncModel)); var connection = TestConfiguration.GetConnection(); var context = new MongoDbContext(connection); var provider = new MongoFrameworkQueryProvider <QueryableAsyncModel>(connection); var queryable = new MongoFrameworkQueryable <QueryableAsyncModel>(provider); context.ChangeTracker.SetEntityState(new QueryableAsyncModel { Title = "EnumerateQueryableAsync" }, EntityEntryState.Added); context.SaveChanges(); await foreach (var entity in queryable.AsAsyncEnumerable()) { Assert.AreEqual("EnumerateQueryableAsync", entity.Title); } }