public TestDeleteRecordContainsPhase() { foreach (var resourceId in Enum.GetValues(typeof(Enums.ResourceType)).Cast <Enums.ResourceType>().Where(r => r != Enums.ResourceType.Contract)) { optionIds.Add(resourceId, PhaseHelper.GetLastPhaseOptionId(resourceId)); } }