Ejemplo n.º 1
0
        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);
        }