コード例 #1
0
        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 searchString;

            if (displayName == "")
            {
                MailAddress addr = new MailAddress(email);
                searchString = addr.User;
            }
            else
            {
                searchString = displayName;
            }

            string standing = pageMailboxDashboard.VerifyArchive(searchString);

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