Пример #1
0
 public CustomerSearchPresenter(ICustomerSearchView view, ICustomerRepository repository)
 {
     ArgumentChecker.ThrowIfNull(view, "customerSearchView");
     ArgumentChecker.ThrowIfNull(repository, "CustomerSearchRepository");
     this.view       = view;
     this.repository = repository;
 }
Пример #2
0
 public static CustomerSearchPresenter Create(ICustomerSearchView view)
 {
     return(new CustomerSearchPresenter(view, RepositoryFactory.CreateCustomerRepository()));
 }
Пример #3
0
 public CustomerSearchPresenter(ICustomerSearchView view)
 {
     _view           = view;
     _bus            = new CustomerBUS();
     _customerSearch = new SearchEngine <Customer>();
 }