Example #1
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());
        }
Example #2
0
        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());
        }