public void TestGetTemplate() { SendCloudClient client = new SendCloudClient(apiTriggerUser, apiKey); var result = client.QueryTemplates(new EmailTemplateCriteria() { }); Assert.IsNotNull(result); Assert.IsTrue(result.Any()); }
public void TestAddTemplate() { SendCloudClient client = new SendCloudClient(apiTriggerUser, apiKey); var result = client.AddTemplate(new EmailTemplate { }); Assert.IsNotNull(result); Assert.IsTrue(result > 0); }
public void TestTriggerAccount() { SendCloudClient client = new SendCloudClient(apiTriggerUser, apiKey); var result = client.SendMail(new MailAddress("*****@*****.**", "Appior"), new MailAddress("*****@*****.**"), "WelcomeToAppior", new Dictionary<string, string> { { "email", "Rynn Wang" }, {"resetUrl","url"} }); Assert.IsNotNull(result); Assert.IsTrue(result.Any()); }
public void TestBulkAccount() { SendCloudClient client = new SendCloudClient(apiBulkUser, apiKey); var result = client.SendMail(new MailAddress("*****@*****.**", "Appior"), new MailAddress("*****@*****.**"), "AppiorProjectMemberInvitation", new Dictionary<string, string> { { "email", "Rynn Wang" }, {"currentUser","ANYONE"}, {"invitationUrl","invitationUrlLLL"} }); Assert.IsNotNull(result); Assert.IsTrue(result.Any()); }