Exemplo n.º 1
0
        public void UnsubscribedSubscribersTest()
        {
            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());
            List <Subscriber> subscribers = repo.GetUnsubscribedSubscribers(list.Find(x => x.Name == "Crm").ListId.ToString());

            Assert.IsNull(subscribers.Find(x => x.Name == "Xxxxx Yyyyy"));
        }