示例#1
0
        /**
         *  SIF_Unsubscribe
         */
        public SIF_Ack SifUnsubscribe(IZone zone, String[] objectType)
        {
            ZoneImpl        AdkZone = (ZoneImpl)zone;
            SIF_Unsubscribe msg     = new SIF_Unsubscribe(AdkZone.HighestEffectiveZISVersion);

            for (int i = 0; i < objectType.Length; i++)
            {
                SIF_Object obj = new SIF_Object();
                obj.ObjectName = objectType[i];
                msg.AddSIF_Object(obj);
            }
            return(AdkZone.Dispatcher.send(msg));
        }
      public void testSIF_Provision010()
      {
         SIF_Provision prov = new SIF_Provision();

         SIF_PublishAddObjects spao = new SIF_PublishAddObjects();
         spao.Add(new SIF_Object("Authentication"));
         prov.SIF_PublishAddObjects = spao;


         prov = (SIF_Provision)AdkObjectParseHelper.WriteParseAndReturn((SifElement)prov, Adk.SifVersion);
         spao = prov.SIF_PublishAddObjects;
         Assertion.AssertNotNull("SIF_PublishAddObjects", spao);
         Assertion.AssertEquals("spao child count", 1, spao.ChildCount);


         SIF_Object so = (SIF_Object)spao.GetChild(InfraDTD.SIF_PUBLISHADDOBJECTS_SIF_OBJECT, new string[] { "Authentication" });
         Assertion.AssertNotNull("SIF_Object", so);

      }