public AuthenticationPresenter(ILoginService loginService, IAuthenticationView authenticationView, IPresenter mainPresenter, IPresenter registrationPresenter) { this.loginService = loginService; this.authenticationView = authenticationView; this.registrationPresenter = registrationPresenter; this.mainPresenter = mainPresenter; SubscribeToEvents(); }
public AuthenticationPresenter(IAuthenticationView view, IApplicationController appController, int LoggedInUserId, string Username, string Imei) { _view = view; _view.Presenter = this; _appController = appController; _service = new AuthenticationService(_appController.DatabaseSettings, _appController.Facility); _loggedInId = LoggedInUserId; _username = Username; _imei = Imei; }
public AuthenticationPresenter( IAuthenticationView view, ILoginValidatorProvider provider, IRepositoryProvider <User> repositoryProvider, UserListPresenter userListPresenter, RegistrationPresenter registrationPresenter ) { this.provider = provider; this.view = view; this.repositoryProvider = repositoryProvider; this.registrationPresenter = registrationPresenter; this.userListPresenter = userListPresenter; SubscribeToViewEvents(); SetUpView(); }
public void Initialize() { mockAuthenticationView = Substitute.For<IAuthenticationView>(); mockContract = Substitute.For<IContract>(); presentor = new AuthenticationPresenter(mockAuthenticationView, (IContract)mockContract); }
public AuthenticationPresenter(IAuthenticationView authView, IContract authenticationContract) { authenticationView = authView; this.authenticationContract = authenticationContract; }