Esempio n. 1
0
 public void CreateViper(BBCNewsList data, UINavigationController navigationController)
 {
     _presenterSearch  = new PresenterSearch(_router, this);
     _interactorSearch = new InteractorSearch(data);
     _router           = new IOSRouter(navigationController);
     _interactorSearch.PresenterSearch = _presenterSearch;
     _presenterSearch.Router           = _router;
 }
Esempio n. 2
0
        public ViewHolder(View itemView, Context context, BBCNewsList data) : base(itemView)
        {
            _cardView = itemView as IViewSearch;

            IRouter router = new AndroidRouter(context);

            _interactorSearch = new InteractorSearch(data);

            _presenterSearch = new PresenterSearch(router, _cardView);
            _interactorSearch.PresenterSearch = _presenterSearch;
        }