protected override void Context()
        {
            _view = A.Fake <IFormulationSettingsView>();
            _formulationDTOMapper         = A.Fake <IFormulationToFormulationDTOMapper>();
            _formulationRepository        = A.Fake <IFormulationRepository>();
            _formulaParameterPresenter    = A.Fake <IMultiParameterEditPresenter>();
            _representationInfoRepository = A.Fake <IRepresentationInfoRepository>();
            _tableFormulationPresenter    = A.Fake <ITableFormulationPresenter>();
            _cloner = A.Fake <ICloner>();
            A.CallTo(() => _formulaParameterPresenter.View).Returns(A.Fake <IMultiParameterEditView>());
            A.CallTo(() => _tableFormulationPresenter.BaseView).Returns(A.Fake <IView>());
            _simpleChartPresenter       = A.Fake <ISimpleChartPresenter>();
            _formulationValuesRetriever = A.Fake <IFormulationValuesRetriever>();

            sut = new FormulationSettingsPresenter(_view, _formulationDTOMapper, _formulaParameterPresenter, _formulationRepository,
                                                   _representationInfoRepository, _tableFormulationPresenter, _cloner, _simpleChartPresenter, _formulationValuesRetriever);
        }
 public FormulationSettingsPresenter(IFormulationSettingsView view, IFormulationToFormulationDTOMapper formulationDTOMapper,
                                     IMultiParameterEditPresenter formulationParametersPresenter, IFormulationRepository formulationRepository,
                                     IRepresentationInfoRepository representationInfoRepository, ITableFormulationPresenter tableFormulationPresenter,
                                     ICloner cloner, ISimpleChartPresenter simpleChartPresenter,
                                     IFormulationValuesRetriever formulationValuesRetriever) : base(view)
 {
     _formulationDTOMapper           = formulationDTOMapper;
     _formulationParametersPresenter = formulationParametersPresenter;
     _formulationRepository          = formulationRepository;
     _representationInfoRepository   = representationInfoRepository;
     _tableFormulationPresenter      = tableFormulationPresenter;
     _cloner = cloner;
     _simpleChartPresenter       = simpleChartPresenter;
     _formulationValuesRetriever = formulationValuesRetriever;
     _formulationParametersPresenter.IsSimpleEditor    = true;
     _formulationParametersPresenter.ParameterChanged += parameterChanged;
     _view.AddChartView(_simpleChartPresenter.View);
     _tableFormulationPresenter.TableFormulaChanged += tableFormulaChanged;
     AddSubPresenters(_formulationParametersPresenter, _tableFormulationPresenter);
     AutoSave = false;
 }