public string VerifyMailBoxGeneralProfile(TestContext testContext, bool isNewMailbox) { //Stage string status = TestStatus.Success; string organizationName = Convert.ToString(testContext.DataRow["OrganizationName"]); string email = Convert.ToString(testContext.DataRow["Email"]); string firstname = Convert.ToString(testContext.DataRow["FirstName"]); string lastName = Convert.ToString(testContext.DataRow["LastName"]); string displayName; if (isNewMailbox) { displayName = Convert.ToString(testContext.DataRow["DisplayName"]); } else { displayName = Convert.ToString(testContext.DataRow["NewDisplayName"]); } string country = Convert.ToString(testContext.DataRow["Country"]); string state = Convert.ToString(testContext.DataRow["State"]); string officeLocation = Convert.ToString(testContext.DataRow["OfficeLocation"]); string address = Convert.ToString(testContext.DataRow["Address"]); string city = Convert.ToString(testContext.DataRow["City"]); string zipCode = Convert.ToString(testContext.DataRow["ZipCode"]); string jobTitle = Convert.ToString(testContext.DataRow["JobTitle"]); string company = Convert.ToString(testContext.DataRow["Company"]); string department = Convert.ToString(testContext.DataRow["Department"]); string managedBy = Convert.ToString(testContext.DataRow["ManagedBy"]); string businessPhone = Convert.ToString(testContext.DataRow["BusinessPhone"]); string fax = Convert.ToString(testContext.DataRow["Fax"]); string homePhone = Convert.ToString(testContext.DataRow["HomePhone"]); string mobilePhone = Convert.ToString(testContext.DataRow["MobilePhone"]); string pager = Convert.ToString(testContext.DataRow["Pager"]); string notes = Convert.ToString(testContext.DataRow["Notes"]); //Act string standing = pageMailboxDashboard.VerifyGeneralProperties(firstname, lastName, displayName, country, state, officeLocation, address, city, zipCode, jobTitle, company, department, managedBy, businessPhone, fax, homePhone, mobilePhone, pager, notes); //Verify if (!string.IsNullOrEmpty(standing)) { status = TestStatus.Failed; } if (isNewMailbox) { ReporterClass.Reporter("Exchange", "Host", "Verify New mailbox General Properties", "Test to verify that the General Properties set at the time of mailbox creation are set successfully", organizationName, "Mailbox", email, "", status, standing); } else { ReporterClass.Reporter("Exchange", "Host", "Verify New mailbox General Properties", "Test to verify that the General Properties set at the time of mailbox update are set successfully", organizationName, "Mailbox", email, "", status, standing); } return(status); }