예제 #1
0
        static void Main(string[] args)
        {
            SystemOperator systemOperator = new SystemOperator();

            systemOperator.CellPhone = "123456789";
            systemOperator.Email     = "*****@*****.**";
            systemOperator.Name      = "Super Operator";
            systemOperator.Pager     = "951753";

            Message message = new Message();

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

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

            Console.ReadKey();
        }
예제 #2
0
 public MailNotificationSender(SystemOperator systemOperator)
     : base(systemOperator)
 {
 }
 public NotificationSender(SystemOperator systemOperator)
 {
     _systemOperator = systemOperator;
 }