コード例 #1
0
        public string AddForwarding(TestContext testContext)
        {
            string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]);
            string email            = Convert.ToString(testContext.DataRow["Email"]);
            string ou             = Convert.ToString(testContext.DataRow["ForwardingOU"]);
            string exchangeObject = Convert.ToString(testContext.DataRow["ForwardingObject"]);
            string user           = Convert.ToString(testContext.DataRow["ForwardingEmail"]);

            pageMailboxDashboard.OpenForwarding();
            string standing = pageMailboxDashboard.SetForwarding(user, ou, exchangeObject);

            string status = VerifyResult(ExchangeMessages.AddForwarding, standing);

            ReporterClass.Reporter("Exchange", "Host", "Add Forwarding", "Test to check if Forwarding User is being added successfully", organizationName, "Mailbox", email, "Organization: " + ou + "; Exchange Object: " + exchangeObject + "; Email: " + user, status, standing);
            return(status);
        }