public void MSOXWSCONT_S01_TC02_VerifyContactItemWithAllElement()
{
#region Step 1:Create the all property contact item.
// Create a full property contact item.
ContactItemType item = this.CreateFullPropertiesContact();
CreateItemResponseType createItemResponse = this.CallCreateItemOperation(item);
// Check the response.
Common.CheckOperationSuccess(createItemResponse, 1, this.Site);
#endregion
#region Step 2:Get the created contact item.
// The contact item to get.
ItemIdType[] itemArray = new ItemIdType[this.ExistContactItems.Count];
this.ExistContactItems.CopyTo(itemArray, 0);
GetItemResponseType getItemResponse = this.CallGetItemOperation(itemArray);
// Check the response.
Common.CheckOperationSuccess(getItemResponse, 1, this.Site);
ContactItemType[] contacts = Common.GetItemsFromInfoResponse<ContactItemType>(getItemResponse);
Site.Assert.AreEqual<int>(
1,
contacts.Length,
string.Format(
"The count of items from response should be 1, actual: '{0}'.", contacts.Length));
this.VerifyChildElementInContactItemTypeComplexType(contacts[0], item);
#endregion
}