예제 #1
0
        public void TestAttachLifecycle()
        {
            try
            {
                Console.WriteLine("\nTesting lifecycle attach...");
                sampleContentManager.CreateDemoObjects();

                attachTestLifecycle();
            }
            catch (FaultException <SerializableException> ex)
            {
                Console.WriteLine(String.Format("Got FaultException[{0}] with message: {1}\n", ex.Detail, ex.Message));
            }
            catch (Exception exx)
            {
                Console.WriteLine(exx.StackTrace);
            }
            finally
            {
                sampleContentManager.DeleteTestCabinet();
            }
        }
 public void TestAddChildNodes()
 {
     Console.WriteLine("\nRunning virtual document add child nodes...");
     try
     {
         sampleContentManager.CreateDemoObjects();
         createTestVirtualDocument();
         Console.WriteLine("Completed update of VDM node.");
     }
     catch (FaultException <SerializableException> ex)
     {
         Console.WriteLine(String.Format("Got FaultException[{0}] with message: {1}\n", ex.Detail, ex.Message));
     }
     catch (Exception exx)
     {
         Console.WriteLine(exx.StackTrace);
     }
     finally
     {
         sampleContentManager.DeleteTestCabinet();
     }
 }