public void DropIndexCallsCypherDropWithCorrectParams()
 {
     var indexMetadataFactory = Substitute.For<IIndexMetadataFactory>();
     var schemaReader = Substitute.For<ISchemaReader>();
     var indexHelper = new IndexHelper(schemaReader, indexMetadataFactory);
     string expected = "INDEX ON :Person(name)";
     indexHelper.DropIndex(graphClientSub, "Person", "name");
     graphClientSub.Cypher.Received().Drop(expected);
 }
 public void DropConstraintCallsCypherDropUniqueConstraintWithCorrectParams()
 {
     var indexMetadataFactory = Substitute.For<IIndexMetadataFactory>();
     var schemaReader = Substitute.For<ISchemaReader>();
     var indexHelper = new IndexHelper(schemaReader, indexMetadataFactory);
     string param1 = "c:Person";
     string param2 = "c.name";
     indexHelper.DropConstraint(graphClientSub, "Person", "name");
     graphClientSub.Cypher.Received().DropUniqueConstraint(param1, param2);
 }