public void MSASCON_S01_TC06_Sync_NoConversationId()
{
#region Initialize sync and get synckey.
SyncRequest syncRequest = Common.CreateInitialSyncRequest(User1Information.CalendarCollectionId);
SyncStore syncStore = this.CONAdapter.Sync(syncRequest);
#endregion
#region Create a calendar item and sync to get the ConversationId node in the response xml.
string calendarSubject = Common.GenerateResourceName(Site, "TestCalendar");
this.SyncAdd(User1Information.CalendarCollectionId, calendarSubject, syncStore.SyncKey);
TestSuiteBase.RecordCaseRelativeItems(this.User1Information, User1Information.CalendarCollectionId, calendarSubject, false);
// Call initial Sync command.
syncRequest = Common.CreateInitialSyncRequest(User1Information.CalendarCollectionId);
syncStore = this.CONAdapter.Sync(syncRequest);
// Sync calendar folder
syncRequest = TestSuiteHelper.GetSyncRequest(User1Information.CalendarCollectionId, syncStore.SyncKey, null, null, false);
this.CONAdapter.Sync(syncRequest);
System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument();
XmlElement lastRawResponse = (XmlElement)this.CONAdapter.LastRawResponseXml;
xmlDoc.LoadXml(lastRawResponse.InnerXml);
System.Xml.XmlNodeList conversationIdNodes = xmlDoc.GetElementsByTagName("ConversationId");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASCON_R77");
// Verify MS-ASCON requirement: MS-ASCON_R77
// If the ConversionId node does not exist, then this requirement can be captured.
Site.CaptureRequirementIfAreEqual(
0,
conversationIdNodes.Count,
77,
@"[In ConversationId (Sync)] The email2:ConversationId element is not present if there is no conversation ID associated with the message.");
#endregion
}
#endregion