protected override void Context()
        {
            _subPresenterManager = SubPresenterHelper.Create <IIndividualItemPresenter>();
            _view                                  = A.Fake <IScaleIndividualView>();
            _propertiesMapper                      = A.Fake <IBuildingBlockPropertiesMapper>();
            _workspace                             = A.Fake <IWorkspace>();
            _individualExpressionsUpdater          = A.Fake <IIndividualExpressionsUpdater>();
            _cloner                                = A.Fake <ICloner>();
            _sourceIndividual                      = A.Fake <Individual>();
            _cloneIndividual                       = A.Fake <Individual>();
            _scaledIndividual                      = A.Fake <Individual>();
            _objectBaseDTOFactory                  = A.Fake <IObjectBaseDTOFactory>();
            _settingPresenter                      = _subPresenterManager.CreateFake(ScaleIndividualItems.Settings);
            _parameterPresenter                    = _subPresenterManager.CreateFake(ScaleIndividualItems.Parameters);
            _scalingConfigurationPresenter         = _subPresenterManager.CreateFake(ScaleIndividualItems.Scaling);
            _moleculePresenter                     = _subPresenterManager.CreateFake(ScaleIndividualItems.Expressions);
            ScaleIndividualItems.Expressions.Index = 3;
            A.CallTo(() => _cloner.Clone(_sourceIndividual)).Returns(_cloneIndividual);
            _individualSettingsDTO = new IndividualSettingsDTO();

            _dialogCreator = A.Fake <IDialogCreator>();
            A.CallTo(() => _settingPresenter.Individual).Returns(_scaledIndividual);
            _scaleIndividualPropertiesDTO = new ObjectBaseDTO();
            A.CallTo(() => _objectBaseDTOFactory.CreateFor <Individual>()).Returns(_scaleIndividualPropertiesDTO);

            sut = new ScaleIndividualPresenter(_view, _subPresenterManager, _dialogCreator, _individualExpressionsUpdater,
                                               _objectBaseDTOFactory, _propertiesMapper, _cloner);
            sut.Initialize();
        }
 protected override void Context()
 {
     _subPresenterManager          = SubPresenterHelper.Create <IIndividualItemPresenter>();
     _propertiesMapper             = A.Fake <IBuildingBlockPropertiesMapper>();
     _buildingBlockDTOFactory      = A.Fake <IObjectBaseDTOFactory>();
     _individualSettingsPresenter  = _subPresenterManager.CreateFake(IndividualItems.Settings);
     _individualParameterPresenter = _subPresenterManager.CreateFake(IndividualItems.Parameters);
     _individualMoleculesPresenter = _subPresenterManager.CreateFake(IndividualItems.Expression);
     _dialogCreator           = A.Fake <IDialogCreator>();
     _individualPropertiesDTO = new ObjectBaseDTO();
     _view = A.Fake <ICreateIndividualView>();
     A.CallTo(() => _buildingBlockDTOFactory.CreateFor <Individual>()).Returns(_individualPropertiesDTO);
     sut = new CreateIndividualPresenter(_view, _subPresenterManager, _dialogCreator, _propertiesMapper, _buildingBlockDTOFactory);
     sut.Initialize();
 }
 public void AttachPresenter(IIndividualParametersPresenter presenter)
 {
     _presenter = presenter;
 }