public void ShouldDeleteCluster() { using (var context = new TestDatabaseContext()) using (var database = new ODatabase(TestConnection.GlobalTestDatabaseAlias)) { var clusterid = database.Create.Cluster("TestClaster", OClusterType.Memory).Run(); var clusters = database.GetClusters(); var clusterLength = clusters.Count; Assert.IsTrue(clusterid > 0); Assert.IsTrue(clusters.Any(c => c.Id == clusterid)); database.Delete.Cluster(clusterid).Run(); // Assert.AreEqual(clusterLength - 1, clusters.Count); } }
static void TestConnection() { ODatabase database = new ODatabase(_alias); System.Console.WriteLine(database.GetClusters().Count); }