public void DeleteSubscribersTest() { CMSettings settings = new CMSettings(); settings.ApiKey = "4a087dfc720e09d91e8cb5cae9db51d5"; //Hard Coded ICMRepository repo = new CMRepository(settings); List <Client> clientList = repo.GetClients(); List <List> list = repo.GetLists(clientList.Find(x => x.Name == "Hal").ClientId.ToString()); //Create Test Subscribers List <Subscriber> DeleteSubscribers = new List <Subscriber>() { new Subscriber() { E_mail = "*****@*****.**", Name = "Joze" }, new Subscriber() { E_mail = "*****@*****.**", Name = "Miha" } }; //Delete Subscribers repo.DeleteSubscribers(list.Find(x => x.Name == "Crm").ListId.ToString(), DeleteSubscribers); //Test inported subscribers List <Subscriber> subscribers = repo.GetAciveSubscribers(list.Find(x => x.Name == "Crm").ListId.ToString()); Assert.IsNull(subscribers.Find(x => x.E_mail == "*****@*****.**")); }