private void Create(string externalKey)
        {
            var triggeredEmailCreator = new TriggeredEmailCreator(Config);

            Assert.DoesNotThrow(() => triggeredEmailCreator.CreateTriggeredSendDefinitionWithPasteHtml(
                                        externalKey,
                                        Priority.High),
                                    "Failed to create Triggered Email");

            Assert.DoesNotThrow(() => triggeredEmailCreator.StartTriggeredSend(externalKey), "Failed to start Triggered Send");
        }
        private void Create(string externalKey)
        {
            var triggeredEmailCreator = new TriggeredEmailCreator(Config);

            Assert.DoesNotThrow(() => triggeredEmailCreator.CreateTriggeredSendDefinitionWithEmailTemplate(
                                        externalKey,
                                        "<html><head></head><style>.green{color:green}</style>",
                                        "</html>",
                                        Priority.High),
                                    "Failed to create Triggered Email");

            Assert.DoesNotThrow(() => triggeredEmailCreator.StartTriggeredSend(externalKey), "Failed to start Triggered Send");
        }
        private void Create(string externalKey)
        {
            var triggeredEmailCreator = new TriggeredEmailCreator(Config);

            Assert.DoesNotThrow(() => triggeredEmailCreator.Create(
                                        externalKey,
                                        "<html>" +
                                        "<head>" +
                                        "<style>.green{color:green}</style>" +
                                        "</head>" +
                                        "<body>Hello %%FirstName%%,   " +
                                        "<p>This is a templated email with custom fields.</p>" +
                                        "<p class='green'>Green Content: %%MyOwnValue%% ...</p>" +
                                        "<body>" +
                                        "<html>",
                                        Priority.High),
                                    "Failed to create Triggered Email");

            Assert.DoesNotThrow(() => triggeredEmailCreator.StartTriggeredSend(externalKey), "Failed to start Triggered Send");
        }
 private static void StartTriggeredSend(string externalKey)
 {
     var triggeredEmailCreator = new TriggeredEmailCreator(GetConfig());
     triggeredEmailCreator.StartTriggeredSend(externalKey);
     Console.WriteLine("Started triggered send");
 }