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; }