> predicate, CancellationToken cancellationToken = default)
{
- return _collection.AsQueryable().Where(predicate).ToListAsync(cancellationToken);
+ return await _collection.AsQueryable().Where(predicate).ToListAsync(cancellationToken);
}
}
diff --git a/test/TestBuildingBlocks/MongoRunnerProvider.cs b/test/TestBuildingBlocks/MongoRunnerProvider.cs
index c22b8d5..f2dc54a 100644
--- a/test/TestBuildingBlocks/MongoRunnerProvider.cs
+++ b/test/TestBuildingBlocks/MongoRunnerProvider.cs
@@ -54,19 +54,13 @@ private void Detach()
}
}
- private sealed class MongoRunnerWrapper : IMongoRunner
+ private sealed class MongoRunnerWrapper(MongoRunnerProvider owner, IMongoRunner underlyingMongoRunner) : IMongoRunner
{
- private readonly MongoRunnerProvider _owner;
- private IMongoRunner? _underlyingMongoRunner;
+ private readonly MongoRunnerProvider _owner = owner;
+ private IMongoRunner? _underlyingMongoRunner = underlyingMongoRunner;
public string ConnectionString => _underlyingMongoRunner?.ConnectionString ?? throw new ObjectDisposedException(nameof(IMongoRunner));
- public MongoRunnerWrapper(MongoRunnerProvider owner, IMongoRunner underlyingMongoRunner)
- {
- _owner = owner;
- _underlyingMongoRunner = underlyingMongoRunner;
- }
-
public void Import(string database, string collection, string inputFilePath, string? additionalArguments = null, bool drop = false)
{
if (_underlyingMongoRunner == null)
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy