コード例 #1
0
        static void Main(string[] args)
        {
            var emailContentCreator = new EmailContentCreator();
            var emailSendingService = new EmailSendingService();
            var emailSender         = new EmailSender(emailContentCreator, emailSendingService);

            emailSender.EmailSent += OnEmailSent;
            emailSender.SendEmail(EmailTypes.Warning, new EnToSkTranslator());
            emailSender.SendEmail(EmailTypes.Warning, new EnToCzTranslator());

            while (!Console.KeyAvailable)
            {
            }
        }