예제 #1
0
 public void GetVersionInfoTest()
 {
     try
     {
         WSAccess.VaultSvcAccessor accessor = WSAccess.VaultSvcAccessor.Instance(URL);
         ContractInfo[]            results  =
             accessor.GetVersionInfo("Manual", "123", "ICTS", "123doc", "docs\\manual");
         if (results == null)
         {
             Assert.Fail("Failed empty messgae");
         }
     }
     catch (Exception ex)
     {
         Assert.Fail("Failed empty messgae " + ex.Message);
     }
 }
예제 #2
0
 public void UploadDocumentTest()
 {
     try
     {
         WSAccess.VaultSvcAccessor accessor = WSAccess.VaultSvcAccessor.Instance(URL);
         string result =
             accessor.UploadDocument("123file", "PDF", "123", "ICTS", null);
         if (result == null)
         {
             Assert.Fail("Failed empty messgae");
         }
     }
     catch (Exception ex)
     {
         Assert.Fail("Failed empty messgae " + ex.Message);
     }
 }
예제 #3
0
 public void GetDocumentForURLTest()
 {
     try
     {
         WSAccess.VaultSvcAccessor accessor = WSAccess.VaultSvcAccessor.Instance(URL);
         byte[] result =
             accessor.GetDocumentForURL("Manual", "123", "ICTS", "123filename", "docs\\manual");
         if (result == null)
         {
             Assert.Fail("Failed empty messgae");
         }
     }
     catch (Exception ex)
     {
         Assert.Fail("Failed empty messgae " + ex.Message);
     }
 }
예제 #4
0
 public void GetDocInfoTest()
 {
     try
     {
         WSAccess.VaultSvcAccessor accessor = WSAccess.VaultSvcAccessor.Instance(URL);
         ContractInfo[]            results  =
             accessor.GetDocInfo("Manual", "123", "ICTS", new System.Collections.Generic.Dictionary <string, string>());
         if (results == null)
         {
             Assert.Fail("Failed empty messgae");
         }
     }
     catch (Exception ex)
     {
         Assert.Fail("Failed empty messgae " + ex.Message);
     }
 }