public void TearDown() { if (subscriber != null) { var subsObj = new ETSubscriber { AuthStub = client, EmailAddress = subsEmail, }; var response = subsObj.Delete(); } }
public bool DeleteSubscriber(string email, int[] lists = null) { var deleteUser = new ETSubscriber { AuthStub = SFClient, SubscriberKey = email, Lists = GenerateSubscriberList(lists) }; var response = deleteUser.Delete(); return(response.Status); }
public void SubscriberDelete() { var subsObj = new ETSubscriber { AuthStub = client, SubscriberKey = subsKey }; var response = subsObj.Delete(); Assert.AreEqual(response.Code, 200); Assert.AreEqual(response.Status, true); Assert.AreEqual(response.Results[0].StatusMessage, "Subscriber deleted"); subscriber = null; }