Ejemplo n.º 1
0
        public void SetUp()
        {
            _routerMock     = new Mock <IRouterRegPhone>(MockBehavior.Strict);
            _viewMock       = new Mock <IViewRegPhone>(MockBehavior.Strict);
            _interactorMock = new Mock <IInteractorRegPhone>(MockBehavior.Strict);

            _viewMock.SetupSet(f => f.Presenter = It.IsAny <PresenterRegPhone>());
            _viewMock.Setup(f => f.SetConfig());

            _interactorMock.SetupSet(f => f.Presenter = It.IsAny <PresenterRegPhone>());

            _stylesHolderMock = new Mock <IRegPhoneStylesHolder>(MockBehavior.Strict);

            _regLocaleStrings = DataService.RepositoryController.RepositoryRA.LangRA;
        }
Ejemplo n.º 2
0
        public PresenterRegPass(IViewRegPass view, IInteractorRegPass interactor, IRouterRegPass router, IRegPassStylesHolder stylesHolder, IRegAuth regLocaleStrings)
        {
            if (view == null || interactor == null || router == null)
            {
                throw new NullReferenceException();
            }

            _styleHolder          = stylesHolder;
            _regLocaleStrings     = regLocaleStrings;
            _router               = router;
            _viewPass             = view;
            _interactor           = interactor;
            _viewPass.Presenter   = this;
            _interactor.Presenter = this;

            _viewPass.SetConfig();
        }
Ejemplo n.º 3
0
        public PresenterForgotPass(IViewForgotPass view, IInteractorForgotPass interactor, IRouterForgotPass router, IRegAuth forgotPassLocaleStrings, IForgotPassStylesHolder stylesHolder)
        {
            if (view == null || interactor == null || router == null || forgotPassLocaleStrings == null)
            {
                throw new NullReferenceException();
            }

            _forgotPassLocaleStrings = forgotPassLocaleStrings;

            _router               = router;
            _view                 = view;
            _interactor           = interactor;
            _view.Presenter       = this;
            _interactor.Presenter = this;
            _stylesHolder         = stylesHolder;

            _view.SetConfig();
        }
Ejemplo n.º 4
0
        public PresenterAuth(IViewAuth view, IInteractorAuth interactor, IRouterAuth router,
                             Action facebookCallLoginAction, Action googleCallLoginAction, Action vkCallLoginAction, Action okCallLoginAction,
                             IAuthStylesHolder stylesHolder, IRegAuth authLocaleStrings)
        {
            if (view == null || interactor == null || router == null)
            {
                throw new NullReferenceException();
            }

            _router               = router;
            _view                 = view;
            _interactor           = interactor;
            _view.Presenter       = this;
            _interactor.Presenter = this;
            _authLocaleStrings    = authLocaleStrings;

            _facebookCallLoginAction = facebookCallLoginAction;
            _googleCallLoginAction   = googleCallLoginAction;
            _vkCallLoginAction       = vkCallLoginAction;
            _okCallLoginAction       = okCallLoginAction;
            _stylesHolder            = stylesHolder;

            _view.SetConfig();
        }
Ejemplo n.º 5
0
 public PresenterAuthMOCK(IViewAuth view, IInteractorAuth interactor, IRouterAuth router,
                          Action facebookCallLoginAction, Action googleCallLoginAction, Action vkCallLoginAction, Action okCallLoginAction,
                          IAuthStylesHolder stylesHolder, IRegAuth authLocaleStrings)
     : base(view, interactor, router, facebookCallLoginAction, googleCallLoginAction, vkCallLoginAction, okCallLoginAction, stylesHolder, authLocaleStrings)
 {
 }