public void GetCampaign() { var campObj = new ETCampaign(); campObj.ID = campaign.ID; campObj.AuthStub = client; var result = campObj.Get(); var getCampObj = (ETCampaign)result.Results[0]; Assert.AreEqual(getCampObj.Name, campaignName); Assert.AreEqual(getCampObj.Description, campaignDesc); }
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; }