public static ObjectivesResultsCollection Convert(IEnumerable<IObjectiveScores> results, string resultsSetName = "", IDictionary<string, string> attributes = null)
 {
     var resultsSet = new ObjectivesResultsCollection();
     resultsSet.Name = resultsSetName;
     var listOfPoints = new List<ObjectiveScoreCollection>();
     foreach (var item in results)
     {
         var newObjScore = new ObjectiveScoreCollection();
         newObjScore.Scores = Convert(item);
         newObjScore.SysConfiguration = Convert(item.GetSystemConfiguration());
         listOfPoints.Add(newObjScore);
     }
     resultsSet.ScoresSet = listOfPoints;
     resultsSet.Tags = Convert(attributes);
     return resultsSet;
 }
        public static ObjectivesResultsCollection Convert(IEnumerable <IObjectiveScores> results, string resultsSetName = "", IDictionary <string, string> attributes = null)
        {
            var resultsSet = new ObjectivesResultsCollection();

            resultsSet.Name = resultsSetName;
            var listOfPoints = new List <ObjectiveScoreCollection>();

            foreach (var item in results)
            {
                var newObjScore = new ObjectiveScoreCollection();
                newObjScore.Scores           = Convert(item);
                newObjScore.SysConfiguration = Convert(item.GetSystemConfiguration());
                listOfPoints.Add(newObjScore);
            }
            resultsSet.ScoresSet = listOfPoints;
            resultsSet.Tags      = Convert(attributes);
            return(resultsSet);
        }