public void EmailList_VerifyRecipientOfEmailList() { EmailListRecipientFeed feed = this.service.RetrieveAllRecipients(this.randomEmailListName); Assert.AreEqual(1, feed.Entries.Count); Assert.AreEqual(this.adminUsername + "@" + this.domainName, ((EmailListRecipientEntry)feed.Entries[0]).Recipient.Email); }
public void EmailList_DeleteRecipientFromEmailList() { this.service.RemoveRecipientFromEmailList(this.adminUsername + "@" + this.domainName, this.randomEmailListName); EmailListRecipientFeed feed = this.service.RetrieveAllRecipients(this.randomEmailListName); Assert.AreEqual(0, feed.Entries.Count, "The recipient wasn't properly deleted from " + this.randomEmailListName); }