コード例 #1
0
        public TextIndexerTests_Mongo()
        {
            BsonJsonConvention.Register(JsonSerializer.Create(TestUtils.CreateSerializerSettings()));

            DomainIdSerializer.Register();

            SupportsQuerySyntax = false;
            SupportsGeo         = true;
        }
コード例 #2
0
ファイル: AssetQueryTests.cs プロジェクト: jrlost/squidex
        static AssetQueryTests()
        {
            DomainIdSerializer.Register();

            TypeConverterStringSerializer <RefToken> .Register();

            TypeConverterStringSerializer <Status> .Register();

            InstantSerializer.Register();
        }
コード例 #3
0
        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();
コード例 #4
0
        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();
コード例 #5
0
        static MongoDbQueryTests()
        {
            InstantSerializer.Register();

            DomainIdSerializer.Register();
        }