public ClientSearchPresenter(IClientSearchView view, IClientRepository repository) { ArgumentChecker.ThrowIfNull(view, "ClientSearchView"); ArgumentChecker.ThrowIfNull(repository, "ClientSearchView"); this.view = view; this.repository = repository; }
public ClientSearchPresenter(IClientSearchView view, ClientSearchModel model) { _view = view; _model = model; _clientRepository = _model.ClientRepository; }
public static ClientSearchPresenter Create(IClientSearchView view) { return(new ClientSearchPresenter(view, RepositoryFactory.CreateClientRepository())); }