Exemplo n.º 1
0
 public void CampaignTearDown()
 {
     if (campaign != null)
     {
         var campObj = new ETCampaign();
         campObj.ID       = campaign.ID;
         campObj.AuthStub = client;
         campObj.Delete();
     }
 }
Exemplo n.º 2
0
        public void DeleteCampaign()
        {
            var campObj = new ETCampaign();

            campObj.ID       = campaign.ID;
            campObj.AuthStub = client;
            var result = campObj.Delete();

            Assert.AreEqual(result.Code, 200);

            var getresult = campObj.Get();

            JToken message = JObject.Parse(getresult.Message);
            var    msg     = message.SelectToken("message").ToString();

            Assert.AreEqual(msg, "Campaign does not exist");
            campaign = null;
        }