Exemplo n.º 1
0
 public EditQuantityInSimulationPresenter(IEditQuantityInSimulationView view, IQuantityToQuantityDTOMapper quantityToQuantityDTOMapper,
                                          IFormulaPresenterCache formulaPresenterCache, IEditParametersInContainerPresenter parameterPresenter, IQuantityTask quantityTask, IReactionDimensionRetriever reactionDimensionRetriever)
     : base(view)
 {
     _quantityTask                = quantityTask;
     _parameterPresenter          = parameterPresenter;
     _parameterPresenter.EditMode = EditParameterMode.ValuesOnly;
     _quantityToQuantityDTOMapper = quantityToQuantityDTOMapper;
     _formulaPresenterCache       = formulaPresenterCache;
     _view.SetInitialValueLabel   = initialValueLabel(reactionDimensionRetriever.SelectedDimensionMode);
     AddSubPresenters(_parameterPresenter);
 }
        protected override void Context()
        {
            _view                       = A.Fake <IEditQuantityInSimulationView>();
            _mapper                     = A.Fake <IQuantityToQuantityDTOMapper>();
            _presenterCache             = A.Fake <IFormulaPresenterCache>();
            _parametrPresenters         = A.Fake <IEditParametersInContainerPresenter>();
            _quantityTask               = A.Fake <IQuantityTask>();
            _reactionDimensionRetriever = A.Fake <IReactionDimensionRetriever>();

            sut            = new EditQuantityInSimulationPresenter(_view, _mapper, _presenterCache, _parametrPresenters, _quantityTask, _reactionDimensionRetriever);
            sut.Simulation = A.Fake <IMoBiSimulation>();
            sut.InitializeWith(A.Fake <ICommandCollector>());
        }