Пример #1
0
        public void Can_create_indicies()
        {
            //--- Arrange ---
            // set up DataCatalog expectations

            //--- Act ---
            MysqlDocStoreManager manager = new MysqlDocStoreManager(_catalog, new XDoc("config").Elem("name", testStore).Elem("id-xpath", "@id"));
            manager.AddIndex("foo", "/foo");
            manager.AddIndex("bar", "/bar");

            //--- Assert ---
            // check datacatalog expectations were met
        }
Пример #2
0
        public void Can_build_index_for_document()
        {
            //--- Arrange ---
            /*
            int id1 = 1;
            XDoc doc1 = new XDoc("x").Attr("id", "a").Elem("foo", "x");
            int id2 = 2;
            XDoc doc2 = new XDoc("x").Attr("id", "b").Elem("foo", "b1").Elem("foo", "b2");
            */

            // set up DataCatalog expectations

            //--- Act ---
            MysqlDocStoreManager manager = new MysqlDocStoreManager(_catalog, new XDoc("config").Elem("name", testStore).Elem("id-xpath", "@id"));
            manager.AddIndex("x", "foo");

            //--- Assert ---
            // verify that addindex called routines to build indicies off existing docs
        }