public MongoDatabaseContext(IOptions <MongoOptions> mongoOptions, ICollectionNameMapper collectionNameMapper) { _mongoOptions = mongoOptions.Value; _collectionNameMapper = collectionNameMapper; _client = new MongoClient(_mongoOptions.ConnectionString); }
public TestSuffixedCollectionNameMapperWrapper(ICollectionNameMapper baseMapper, string prefix) { _baseMapper = baseMapper ?? throw new ArgumentNullException(nameof(baseMapper)); _prefix = prefix ?? throw new ArgumentNullException(nameof(prefix)); }