Example #1
0
        public bool HasBeenModifiedMoreRecentlyThan(MigrationItemId migrationItemId)
        {
            TfsWITDiffItem diffItemToCompare = m_diffProvider.GetWITDiffItem(migrationItemId.ItemId) as TfsWITDiffItem;

            if (diffItemToCompare == null)
            {
                return(false);
            }

            return(m_tfsWorkItem.ChangedDate > diffItemToCompare.TfsWorkItem.ChangedDate);
        }
Example #2
0
        /// <summary>
        /// Return a IWITDiffItem representing a single work item as identified by the adapter specific workItemId string
        /// </summary>
        /// <param name="workItemId"></param>
        /// <returns></returns>
        public IWITDiffItem GetWITDiffItem(string workItemIdStr)
        {
            IWITDiffItem tfsWitDiffItem = null;
            int          workItemId;

            if (int.TryParse(workItemIdStr, out workItemId))
            {
                try
                {
                    WorkItem workItem = m_workItemStore.GetWorkItem(workItemId);
                    tfsWitDiffItem = new TfsWITDiffItem(this, workItem);
                }
                catch (DeniedOrNotExistException)
                {
                    // Treat this as not found rather than an Exception so that processing continues
                    return(null);
                }
            }
            return(tfsWitDiffItem);
        }