Example #1
0
        //public string AddArchive(TestContext testContext)
        //{

        //    string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
        //    string email = Convert.ToString(testContext.DataRow["Email"]);
        //    pageResourceMailboxDashboard.OpenArchive();

        //    //string standing = pageResourceMailboxDashboard.SetArchive();


        //    string status = VerifyResult(ExchangeMessages.AddArchive, standing);
        //    ReporterClass.Reporter("Exchange", Settings.UserLevel, "Add Archive", "Test to check if archiving is being enabled or not", organizationName, "Resource Mailbox", email, "", status, standing);
        //    pageResourceMailboxDashboard.CloseDialogueBox();
        //    return status;
        //}
        //public string VerifyArchive(TestContext testContext)
        //{
        //    string status = TestStatus.Success;
        //    string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
        //    string email = Convert.ToString(testContext.DataRow["Email"]);
        //    string displayName = Convert.ToString(testContext.DataRow["NewDisplayName"]);



        //    string standing = pageResourceMailboxDashboard.VerifyArchive(searchString);

        //    if (standing != TestStatus.Success)
        //    {
        //        status = TestStatus.Failed;
        //    }
        //    ReporterClass.Reporter("Exchange", Settings.UserLevel, "Verify enabling of Archiving", "Test to check if archiving has been enabled or not", organizationName, "Resource Mailbox", email, "", status, standing);
        //    return status;

        //}

        public static void NavigateToResourceMailboxDashboard(TestContext testContext)
        {
            try
            {
                //Arrange
                string email       = Convert.ToString(testContext.DataRow["Email"]);
                string displayName = Convert.ToString(testContext.DataRow["DisplayName"]);


                ExgOrgResourceMailboxes orgResourceMailboxes = new ExgOrgResourceMailboxes();
                orgResourceMailboxes.SearchResourceMailboxName(email, displayName);
                ExgResourceMailboxDashboard resourceMailboxDashboard =
                    orgResourceMailboxes.OpenResourceMailboxDashboard();

                //Act
            }

            catch (Exception ex)
            {
                LogClass.AppendLogs(ex);
            }
        }
Example #2
0
 public BaseResourceMailbox()
 {
     pageResourceMailboxDashboard = new ExgResourceMailboxDashboard();
 }