Esempio n. 1
0
        public void TestFindLinks()
        {
            DMLogin.ServerName = DMTestEnvironment.Server;
            DMLogin.Password = TestHelperSecure.MyPassword;
            string dst = DMLogin.Dst;

            // we know an existing document-folder link in our library
            int docNumber = 12071903;
            string expectedLink = "799470242";
            DMDocument doc = new DMDocument() { Dst = dst, Library = DMLogin.Library };
            var res = doc.FindLinks(docNumber);
            Assert.IsNotNull(res);
            Assert.AreEqual(1, res.RowCount);
            Assert.AreEqual(expectedLink, res.Rows[0].Values[0]);
        }