public void Edit(IEnumerable <IQuantity> quantities, IEnumerable <QuantitySelection> selectedQuantities)
        {
            _allQuantityListPresenter.Edit(quantities);

            var selectedDTO = selectedQuantities
                              .Select(q => q.Path)
                              .Select(path => _allQuantityListPresenter.QuantityDTOByPath(path))
                              .Where(dto => dto != null)
                              .ToList();

            _selectedQuantityListPresenter.Edit(selectedDTO);
            selectedDTO.Each(dto => dto.Selected = true);
        }
        private void addDefaultSelectionIfRequired(PathCache <IQuantity> allOutputs)
        {
            //not one exactly
            if (allOutputs.Count != 1)
            {
                return;
            }

            //one already selected
            if (_populationAnalysis.All <PopulationAnalysisOutputField>().Any())
            {
                return;
            }

            addOutput(_allOutputsPresenter.QuantityDTOByPath(allOutputs.Keys.First()));
        }