Skip to content

🐞 [Bug]: when using TemporaryMongoDbCollection with IMongoDatabase, it fails on missing MongoClient #492

@stijnmoreels

Description

@stijnmoreels

Expected behavior

When creating a TemporaryMongoDbCollection directly from a IMongoDatabase, it fails internally with a null-argument exception on a missing MongoClient, while there is already a client available in the database.

Actual behavior

It should not be necessary to pass the MongoClient when using the IMongoDatabase overload.

Steps to reproduce

Use the IMongoDatabase overload of the TemporaryMongoDbCollection.

Arcus version

2.2.0

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

To do

Relationships

None yet

Development

No branches or pull requests

Issue actions