示例#1
0
        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);
        }