Exemple #1
0
 public void Run()
 {
     MailManager mailManager = new MailManager();
     Fax fax = new Fax(mailManager);
     mailManager.SimulateNewMail("Pavel", "Katya", "Hello, world!");
     fax.Unregister(mailManager);
 }
Exemple #2
0
        public void Run()
        {
            MailManager mailManager = new MailManager();
            Fax         fax         = new Fax(mailManager);

            mailManager.SimulateNewMail("Pavel", "Katya", "Hello, world!");
            fax.Unregister(mailManager);
        }