public TextIndexerTests_Mongo() { BsonJsonConvention.Register(JsonSerializer.Create(TestUtils.CreateSerializerSettings())); DomainIdSerializer.Register(); SupportsQuerySyntax = false; SupportsGeo = true; }
static AssetQueryTests() { DomainIdSerializer.Register(); TypeConverterStringSerializer <RefToken> .Register(); TypeConverterStringSerializer <Status> .Register(); InstantSerializer.Register(); }
public MongoTextIndexFixture() { BsonJsonConvention.Register(JsonSerializer.Create(TestUtils.CreateSerializerSettings())); DomainIdSerializer.Register(); var mongoClient = new MongoClient(TestConfig.Configuration["mongodb:configuration"]); var mongoDatabase = mongoClient.GetDatabase(TestConfig.Configuration["mongodb:database"]); Index = new MongoTextIndex(mongoDatabase, false); Index.InitializeAsync(default).Wait();
public AtlasTextIndexFixture() { BsonJsonConvention.Register(JsonSerializer.Create(TestUtils.CreateSerializerSettings())); DomainIdSerializer.Register(); var mongoClient = new MongoClient(TestConfig.Configuration["atlas:configuration"]); var mongoDatabase = mongoClient.GetDatabase(TestConfig.Configuration["atlas:database"]); var options = TestConfig.Configuration.GetSection("atlas").Get <AtlasOptions>(); Index = new AtlasTextIndex(mongoDatabase, Options.Create(options), false); Index.InitializeAsync(default).Wait();
static MongoDbQueryTests() { InstantSerializer.Register(); DomainIdSerializer.Register(); }