예제 #1
0
        public void CreateEmailTest()
        {
            Email email = new Email()
            {
                name          = "sample email",
                emailFooterId = 1,
                emailHeaderId = 1,
                encodingId    = 1,
                emailGroupId  = 1,
                subject       = "sample",
                htmlContent   = new RawHtmlContent()
                {
                    type = "RawHtmlContent",
                    html = "<html><head></head><body>test</body></html>"
                }
            };

            Email returnedEmail = _emailClient.CreateEmail(email);

            Assert.AreEqual(email.name, returnedEmail.name);
        }