public void GetPortTest() { #region GetPort int port = EmailConfig.GetPort(); #endregion Assert.AreEqual(993, port); }
public void BasicConnectionTest() { string host = EmailConfig.GetHost(); string username = EmailConfig.GetUserName(); string password = EmailConfig.GetPassword(); int port = EmailConfig.GetPort(); using (EmailDriver test = new EmailDriver(host, username, password, port, 10000, true, true)) { test.EmailConnection.NoOp(); } }
public static void Cleanup() { string host = EmailConfig.GetHost(); string username = EmailConfig.GetUserName(); string password = EmailConfig.GetPassword(); int port = EmailConfig.GetPort(); bool isSsl = EmailConfig.GetEmailViaSSL(); bool checkSsl = EmailConfig.GetEmailSkipSslValidation(); using (EmailDriver driver = new EmailDriver(host, username, password, port, 10000, isSsl, checkSsl)) { driver.SelectMailbox("Inbox"); foreach (MimeMessage messageHeader in driver.GetAllMessageHeaders()) { driver.DeleteMessage(messageHeader); Thread.Sleep(100); } } }
public void GetPortTest() { int port = EmailConfig.GetPort(); Assert.AreEqual(993, port); }