Exemplo n.º 1
0
 public void TearDown()
 {
     if (subscriber != null)
     {
         var subsObj = new ETSubscriber
         {
             AuthStub     = client,
             EmailAddress = subsEmail,
         };
         var response = subsObj.Delete();
     }
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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;
        }