protected override void Context()
        {
            _view = A.Fake <IEditParameterView>();
            _editFormulaPresenter    = A.Fake <IEditFormulaPresenter>();
            _parameterMapper         = A.Fake <IParameterToParameterDTOMapper>();
            _editRHSPresenter        = A.Fake <IEditFormulaPresenter>();
            _interactionTasksContext = A.Fake <IInteractionTaskContext>();
            _groupRepository         = A.Fake <IGroupRepository>();
            _editTasks                        = A.Fake <IEditTaskFor <IParameter> >();
            _favoriteTask                     = A.Fake <IFavoriteTask>();
            _parameterTask                    = A.Fake <IInteractionTasksForParameter>();
            _editValueOriginPresenter         = A.Fake <IEditValueOriginPresenter>();
            _tagsPresenter                    = A.Fake <ITagsPresenter>();
            _descriptorConditionListPresenter = A.Fake <IDescriptorConditionListPresenter <IParameter> >();

            _buildingBlock = A.Fake <IBuildingBlock>();

            sut = new EditParameterPresenter(
                _view,
                _editFormulaPresenter,
                _parameterMapper,
                _editRHSPresenter,
                _interactionTasksContext,
                _groupRepository,
                _editTasks,
                _parameterTask,
                new ContextSpecificReferencesRetriever(),
                _favoriteTask,
                _editValueOriginPresenter,
                _tagsPresenter,
                _descriptorConditionListPresenter)
            {
                BuildingBlock = _buildingBlock
            };

            _commandCollector = A.Fake <ICommandCollector>();
            sut.InitializeWith(_commandCollector);

            _parameter    = new Parameter().WithId("Para");
            _parameterDTO = new ParameterDTO(_parameter);
            A.CallTo(() => _parameterMapper.MapFrom(_parameter)).Returns(_parameterDTO);
        }
Beispiel #2
0
        protected override void Context()
        {
            _view = A.Fake <IEditParameterView>();
            _editFormulaPresenter    = A.Fake <IEditFormulaPresenter>();
            _parameterMapper         = A.Fake <IParameterToParameterDTOMapper>();
            _editRHSPresenter        = A.Fake <IEditFormulaPresenter>();
            _entityTaks              = A.Fake <IEntityTask>();
            _interactionTasksContext = A.Fake <IInteractionTaskContext>();
            _groupRepository         = A.Fake <IGroupRepository>();
            _editTasks                = A.Fake <IEditTaskFor <IParameter> >();
            _favoriteTask             = A.Fake <IFavoriteTask>();
            _parameterTask            = A.Fake <IInteractionTasksForParameter>();
            _editValueOriginPresenter = A.Fake <IEditValueOriginPresenter>();
            sut = new EditParameterPresenter(_view, _editFormulaPresenter, _parameterMapper, _editRHSPresenter, _interactionTasksContext,
                                             _entityTaks, _groupRepository, _editTasks, _parameterTask, new ContextSpecificReferencesRetriever(), _favoriteTask, _editValueOriginPresenter)
            {
                BuildingBlock = A.Fake <IBuildingBlock>()
            };

            _commandCollector = A.Fake <ICommandCollector>();
            sut.InitializeWith(_commandCollector);
        }