private void ValidateLoadPatternsAllTheSame()
 {
     if (LoadPatterns.Any(p => LoadPatternTypeConverter.Convert(p.Pattern) != LoadPatternType))
     {
         throw new InvalidDataException("did not expect mismatched load patterns in the same load case");
     }
 }
        public LoadCase(string description, IEnumerable <FactoredLoadPattern> loadPatterns, PredominantDirection direction)
        {
            Description          = description;
            LoadPatterns         = loadPatterns.ToList();
            LoadPatternType      = LoadPatternTypeConverter.Convert(LoadPatterns.First().Pattern);
            PredominantDirection = direction;

            ValidateLoadPatternsAllTheSame();
        }