public AuthPresenter(IAuthView authView, AuthModel authModel, IDataBaseStorage dataBaseStorage) { _dataBaseStorage = dataBaseStorage; _authView = authView; _authView.onAuthClicked += onAuthPressed; _authModel = authModel; _dataBaseStorage = dataBaseStorage; }
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; }
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"); }
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)); }