Esempio n. 1
0
        public static void Main(string[] args)
        {
            PayTM payTM = new PayTM();

            payTM.AddNotificationService(new Email());
            payTM.AddNotificationService(new SMS());
            // payTM.AddNotificationService(new Post());
            payTM.Transact();
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            PayTM payTM = new PayTM(new Email());

            payTM.Transact();
        }