Пример #1
0
 protected override void Context()
 {
     _view            = A.Fake <IRelatedItemsView>();
     _dialogCreator   = A.Fake <IDialogCreator>();
     _journalPageTask = A.Fake <IJournalPageTask>();
     _relatedItemComparablePresenter = A.Fake <IRelatedItemComparablePresenter>();
     _reloadRelatedItemTask          = A.Fake <IReloadRelatedItemTask>();
     _journalRetriever = A.Fake <IJournalRetriever>();
     sut          = new RelatedItemsPresenter(_view, _journalRetriever, _journalPageTask, _relatedItemComparablePresenter, _reloadRelatedItemTask);
     _journalPage = new JournalPage();
 }
Пример #2
0
 public RelatedItemsPresenter(
     IRelatedItemsView view,
     IJournalRetriever journalRetriever,
     IJournalPageTask journalPageTask,
     IRelatedItemComparablePresenter relatedItemComparablePresenter,
     IReloadRelatedItemTask reloadRelatedItemTask) : base(view)
 {
     _journalRetriever = journalRetriever;
     _journalPageTask  = journalPageTask;
     _relatedItemComparablePresenter = relatedItemComparablePresenter;
     _reloadRelatedItemTask          = reloadRelatedItemTask;
     _view.AddComparableView(_relatedItemComparablePresenter.View);
     AddSubPresenters(_relatedItemComparablePresenter);
 }
 public void AttachPresenter(IRelatedItemComparablePresenter presenter)
 {
     _presenter = presenter;
 }