public ProteinExpressionsPresenter(IProteinExpressionsView view, ISubPresenterItemManager <IExpressionItemPresenter> subPresenterItemManager, IDialogCreator dialogCreator,
                                    IGeneExpressionQueries geneExpressionQueries, IMappingPresenter mappingPresenter, IProteinExpressionDataHelper dataHelper)
     : base(view, subPresenterItemManager, ExpressionItems.All, dialogCreator)
 {
     _geneExpressionQueries            = geneExpressionQueries;
     _mappingPresenter                 = mappingPresenter;
     _dataHelper                       = dataHelper;
     _mappingPresenter.MappingChanged += MappingChanged;
 }
        protected override void Context()
        {
            _view = A.Fake <IProteinExpressionsView>();
            _subPresenterManager      = A.Fake <ISubPresenterItemManager <IExpressionItemPresenter> >();
            _dialogCreator            = A.Fake <IDialogCreator>();
            _proteinExpressionQueries = A.Fake <IProteinExpressionQueries>();
            _mappingPresenter         = A.Fake <IMappingPresenter>();
            _dataHelper = A.Fake <IProteinExpressionDataHelper>();

            sut = new ProteinExpressionsPresenter(_view, _subPresenterManager, _dialogCreator, _proteinExpressionQueries, _mappingPresenter, _dataHelper);
        }
예제 #3
0
 public void AttachPresenter(IMappingPresenter presenter)
 {
     _presenter = presenter;
 }