public static void Perform() { var mailManager = new MailManager(); var fax = new Fax(mailManager); mailManager.SimulateNewEmail("Modi", "Trump", "H1-B"); }
public static void PerformWithEmailWithOverrideForEvent() { var mm = new EmailManager(); var fax = new Fax(mm); mm.SimulateNewEmail(@"RSS", @"Modi", @"Build Temple"); }
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); }