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 static void CreateTriggeredSendWithTemplate(string externalKey) { var triggeredEmailCreator = new TriggeredEmailCreator(GetConfig()); triggeredEmailCreator.CreateTriggeredSendDefinitionWithEmailTemplate(externalKey, "<html><head><style>.red{color:red}</style></head>", "</html>"); Console.WriteLine("Completed creating triggered send"); }