/// <summary> /// Check uniqueness of case lifecycle status. /// </summary> /// <param name="source">Caselifecycle collection.</param> /// <param name="statusColumnName">Status column name.</param> /// <returns>Uniqueness of case lifecycle collection by status.</returns> private bool CheckDistinctStatus(EntityCollection source, string statusColumnName) { Guid firstElement = source[0].GetTypedColumnValue <Guid>(statusColumnName); bool isDistinct = source.All(element => element.GetTypedColumnValue <Guid>(statusColumnName) == firstElement); return(isDistinct); }