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);
        }
 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));
 }
 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));
 }
 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
 }
Exemple #5
0
        public void IndexCreateSimple()
        {
            var resp = connection.Run(testTable.IndexCreate("index1", o => o.Name));

            Assert.That(resp.Created, Is.EqualTo(1));
        }
 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
 }