Esempio n. 1
0
        public ItemComparisonResult(IItemData sourceItemData, IItemData targetItemData, bool isRenamed = false, bool isMoved = false, bool isTemplateChanged = false, FieldComparisonResult[] changedSharedFields = null, ItemVersionComparisonResult[] changedVersions = null)
        {
            Assert.ArgumentNotNull(sourceItemData, "sourceItem");
            Assert.ArgumentNotNull(targetItemData, "targetItem");

            SourceItemData = sourceItemData;
            TargetItemData = targetItemData;
            IsRenamed = isRenamed;
            IsMoved = isMoved;
            IsTemplateChanged = isTemplateChanged;
            ChangedSharedFields = changedSharedFields ?? new FieldComparisonResult[0];
            ChangedVersions = changedVersions ?? new ItemVersionComparisonResult[0];
        }
		public ItemLanguageComparisonResult(IItemLanguage language, FieldComparisonResult[] changedFields)
		{
			Language = language;
			ChangedFields = new List<FieldComparisonResult>(changedFields ?? new FieldComparisonResult[0]);
		}
		public ItemVersionComparisonResult(IItemVersion sourceVersion, IItemVersion targetVersion, FieldComparisonResult[] changedFields)
		{
			SourceVersion = sourceVersion;
			TargetVersion = targetVersion;
			ChangedFields = changedFields ?? new FieldComparisonResult[] {};
		}