public CustomerSearchPresenter(ICustomerSearchView view, ICustomerRepository repository) { ArgumentChecker.ThrowIfNull(view, "customerSearchView"); ArgumentChecker.ThrowIfNull(repository, "CustomerSearchRepository"); this.view = view; this.repository = repository; }
public static CustomerSearchPresenter Create(ICustomerSearchView view) { return(new CustomerSearchPresenter(view, RepositoryFactory.CreateCustomerRepository())); }
public CustomerSearchPresenter(ICustomerSearchView view) { _view = view; _bus = new CustomerBUS(); _customerSearch = new SearchEngine <Customer>(); }