private bool CheckDeleteInSyncResponse(string syncKey, string collectionId, string serverId)
{
SyncResponse syncResponse = this.SyncChanges(syncKey, collectionId);
Response.SyncCollectionsCollectionCommands commands = this.GetCommandsFromSyncResponse(syncResponse);
Site.Assert.IsNotNull(commands.Delete, "The Delete elements in Sync response for collection ID: {0} should not be null.", collectionId);
foreach (Response.SyncCollectionsCollectionCommandsDelete delete in commands.Delete)
{
Site.Assert.IsNotNull(delete, "The Delete element in Sync response for collection ID: {0} should not be null.", collectionId);
if (serverId.Equals(delete.ServerId))
{
return true;
}
}
return false;
}