示例#1
0
        public static void Perform()
        {
            var mailManager = new MailManager();
            var fax         = new Fax(mailManager);

            mailManager.SimulateNewEmail("Modi", "Trump", "H1-B");
        }
示例#2
0
        public static void PerformWithEmailWithOverrideForEvent()
        {
            var mm = new EmailManager();

            var fax = new Fax(mm);

            mm.SimulateNewEmail(@"RSS", @"Modi", @"Build Temple");
        }
示例#3
0
        public static void PerfromUnregisterNonListener()
        {
            var mailManager = new MailManager();
            var fax         = new Fax(mailManager);

            fax.Unregister(mailManager);

            //Again...Doesn't cause any exception.
            fax.Unregister(mailManager);
        }