public string GetDayInfoText(IEnumerable <EntryObjectDTO> entryObjects)
        {
            Dictionary <ExerciseType, int> exerciseCounter    = new Dictionary <ExerciseType, int>();
            List <StrengthTrainingItemDTO> trainingDayEntries = new List <StrengthTrainingItemDTO>();
            var strengthEntries = entryObjects.Cast <StrengthTrainingEntryDTO>();

            foreach (var sizeEntry in strengthEntries)
            {
                foreach (StrengthTrainingItemDTO list in sizeEntry.Entries)
                {
                    var exercise     = ObjectsReposidory.GetExercise(list.ExerciseId);
                    var exerciseType = exercise.ExerciseType;
                    if (!exerciseCounter.ContainsKey(exerciseType))
                    {
                        exerciseCounter.Add(exerciseType, 0);
                    }
                    exerciseCounter[exerciseType] = exerciseCounter[exerciseType] + list.Series.Count;
                    trainingDayEntries.Add(list);
                }
            }
            StringBuilder builder = new StringBuilder();

            foreach (KeyValuePair <ExerciseType, int> keyValuePair in exerciseCounter)
            {
                LocalizedExerciseType localizedType = new LocalizedExerciseType(keyValuePair.Key);
                builder.AppendLine(localizedType.LocalizedName + ":" + keyValuePair.Value);
            }
            return(builder.ToString());
        }
 public void PrepareData()
 {
     ObjectsReposidory.EnsureExercisesLoaded();
 }