Esempio n. 1
0
        protected override void Context()
        {
            _view = A.Fake <ISimulationCompoundProtocolView>();
            _simulationCompoundProtocolFormulationPresenter = A.Fake <ISimulationCompoundProtocolFormulationPresenter>();
            _buildingBlockInSimulationManager = A.Fake <IBuildingBlockInSimulationManager>();
            _lazyLoadTask = A.Fake <ILazyLoadTask>();

            sut = new SimulationCompoundProtocolPresenter(_view, _simulationCompoundProtocolFormulationPresenter, _lazyLoadTask, _buildingBlockInSimulationManager);
        }
 public SimulationCompoundProtocolPresenter(ISimulationCompoundProtocolView view,
                                            ISimulationCompoundProtocolFormulationPresenter simulationCompoundProtocolFormulationPresenter,
                                            ILazyLoadTask lazyLoadTask, IBuildingBlockInSimulationManager buildingBlockInSimulationManager)
     : base(view)
 {
     _simulationCompoundProtocolFormulationPresenter = simulationCompoundProtocolFormulationPresenter;
     _lazyLoadTask = lazyLoadTask;
     _buildingBlockInSimulationManager = buildingBlockInSimulationManager;
     _view.AddFormulationMappingView(_simulationCompoundProtocolFormulationPresenter.View);
     _simulationCompoundProtocolFormulationPresenter.StatusChanged += onFormulationChanged;
 }
 public void AttachPresenter(ISimulationCompoundProtocolFormulationPresenter presenter)
 {
     _presenter = presenter;
 }