public AuthPresenter(IAuthView authView, AuthModel authModel, IDataBaseStorage dataBaseStorage)
 {
     _dataBaseStorage = dataBaseStorage;
     _authView = authView;
     _authView.onAuthClicked += onAuthPressed;
     _authModel = authModel;
     _dataBaseStorage = dataBaseStorage; 
 }
Beispiel #2
0
 public MainLogic(IWorkerView workerView,IAuthView authView, IDataBaseStorage dataBaseStorage)
 {
     _workerView = workerView;
     _authView = authView;
     _authModel = new AuthModel();
     _dataBaseStorage = dataBaseStorage;
     _authPresenter = new AuthPresenter(_authView, _authModel, _dataBaseStorage);
     _authModel.currentUserChanged += defineUser;
 }
Beispiel #3
0
        public AuthPresenter(IAuthView view, IAuthRouter router)
        {
            _view = view ?? throw new ArgumentNullException("Provided view is null!");
            _view.OnLocaleChanged    += LocaleChanged;
            _view.OnLoginBtnPressed  += LoginAttempt;
            _view.OnSignUpBtnPressed += SignUpAllowed;

            _router = router ?? throw new ArgumentNullException("Provided router is null!");

            LocaleChanged("EN");
        }
Beispiel #4
0
 public AuthPresenter(IAuthorizationInteractor authInteractor, IAuthView authView)
 {
     _authInteractor = authInteractor ?? throw new ArgumentNullException(nameof(authInteractor));
     _authView       = authView ?? throw new ArgumentNullException(nameof(authView));
 }
 public AuthPresenter(IAuthInteractor interactor, IAuthView view, IAuthRouter router)
 {
     _interactor = interactor ?? throw new ArgumentNullException(nameof(interactor));
     _view       = view ?? throw new ArgumentNullException(nameof(view));
     _router     = router ?? throw new ArgumentNullException(nameof(router));
 }