public void ThenEncryptedMailShouldAppearInTheOutBox(string to, string subject, string content, string listSubject, string encryptedPass)
 {
     outboxPage = new OutboxPage(driver);
     outboxPage.NavigateToMyMessageOutbox(driver);
     readFromConfig = new ReadFromConfig();
     Assert.IsTrue(outboxPage.ValidateMail(driver, readFromConfig.GetValue(to), subject, content, listSubject, readFromConfig.GetValue(encryptedPass)));
 }
 public void ThenMailShouldAppearInDepartmentMessageOutBox(string to, string subject, string content, int attachmentNo, string attachmentType, string dept)
 {
     driver     = driverFactory.GetDriver();
     outboxPage = new OutboxPage(driver);
     outboxPage.NavigateToQADeptOutbox(driver);
     Assert.IsTrue(outboxPage.ValidateMail(driver, to, subject, content, attachmentNo: attachmentNo, attachment: attachmentType));
 }
 public void ThenMailShouldAppearInMyMessageOutBox(string to, string subject, string content, int attachmentNo, string attachmentType)
 {
     driver     = driverFactory.GetDriver();
     outboxPage = new OutboxPage(driver);
     outboxPage.NavigateToMyMessageOutbox(driver);
     Assert.IsTrue(outboxPage.ValidateMail(driver, readFromConfig.GetValue(to), subject, content, attachmentNo: attachmentNo, attachment: attachmentType));
 }