示例#1
0
        public void IndexCreateSimple()
        {
            var resp = connection.Run(testTable.IndexCreate("index1", o => o.Name));

            Assert.That(resp.Created, Is.EqualTo(1));

            var waitResp = connection.Run(testTable.IndexWait("index1")).Single();

            Assert.That(waitResp.Ready, Is.True);
            Assert.That(waitResp.IndexName, Is.EqualTo("index1"));
            Assert.That(waitResp.Geographic, Is.False);
            Assert.That(waitResp.MultiIndex, Is.False);
            Assert.That(waitResp.Outdated, Is.False);
            Assert.That(waitResp.BlocksProcessed.HasValue, Is.False);
            Assert.That(waitResp.BlocksTotal.HasValue, Is.False);
        }
示例#2
0
 public override void TestFixtureSetUp()
 {
     base.TestFixtureSetUp();
     connection.RunAsync(Query.DbCreate("test")).Wait();
     connection.RunAsync(Query.Db("test").TableCreate("table")).Wait();
     testTable = Query.Db("test").Table <TestObject>("table");
     connection.Run(testTable.IndexCreate("index1", o => o.Name));
 }
示例#3
0
 public override void TestFixtureSetUp()
 {
     base.TestFixtureSetUp();
     connection.RunAsync(Query.DbCreate("test")).Wait();
     connection.RunAsync(Query.Db("test").TableCreate("table")).Wait();
     testTable = Query.Db("test").Table<TestObject>("table");
     connection.Run(testTable.IndexCreate("index1", o => o.Name));
 }
示例#4
0
 public override void TestFixtureSetUp()
 {
     base.TestFixtureSetUp();
     connection.RunAsync(Query.DbCreate("test")).Wait();
     connection.RunAsync(Query.Db("test").TableCreate("table")).Wait();
     testTable = Query.Db("test").Table <TestObject>("table");
     connection.Run(testTable.IndexCreate("index1", o => o.Name));
     connection.Run(testTable.IndexWait("index1")).ToArray(); // ToArray ensures that the IEnumerable is actually evaluated completely and the wait is completed
 }
示例#5
0
        public void IndexCreateSimple()
        {
            var resp = connection.Run(testTable.IndexCreate("index1", o => o.Name));

            Assert.That(resp.Created, Is.EqualTo(1));
        }
示例#6
0
 public override void TestFixtureSetUp()
 {
     base.TestFixtureSetUp();
     connection.RunAsync(Query.DbCreate("test")).Wait();
     connection.RunAsync(Query.Db("test").TableCreate("table")).Wait();
     testTable = Query.Db("test").Table<TestObject>("table");
     connection.Run(testTable.IndexCreate("index1", o => o.Name));
     connection.Run(testTable.IndexWait("index1")).ToArray(); // ToArray ensures that the IEnumerable is actually evaluated completely and the wait is completed
 }