Exemple #1
0
        static void Main(string[] args)
        {
            SystemOperator systemOperator = new SystemOperator
            {
                CellPhone = "123456789",
                Email     = "*****@*****.**",
                Name      = "Super Operator",
                Pager     = "951753"
            };

            Message message = new Message {
                Sender = new SmsNotificationSender(systemOperator)
            };

            message.Send();

            message.Sender = new MailNotificationSender(systemOperator);
            message.Send();

            Console.ReadKey();
        }
Exemple #2
0
 public SmsNotificationSender(SystemOperator systemOperator)
     : base(systemOperator)
 {
 }