コード例 #1
0
ファイル: Program.cs プロジェクト: murariguilherme/SOLID
        static void Main(string[] args)
        {
            var sms = new SmsMessage();

            sms.AddMessage("Hello how are you? This is a sms marketing, do you wanna buy something?");
            sms.AddRecipient("+39-319-555-7749685");
            sms.AddRecipient("+39-320-555-7828092");
            sms.Send();

            Console.WriteLine();

            var email = new EmailMessage();

            email.AddMessage("Please this is an e-mail verification.");
            email.AddSubject();
            email.AddAttach();
            email.AddRecipient("*****@*****.**");
            email.AddRecipient("*****@*****.**");
            email.AddRecipient("*****@*****.**");
            email.RequestReadReceipt();
            email.Send();

            Console.ReadLine();
        }