コード例 #1
0
 public ClientSearchPresenter(IClientSearchView view, IClientRepository repository)
 {
     ArgumentChecker.ThrowIfNull(view, "ClientSearchView");
     ArgumentChecker.ThrowIfNull(repository, "ClientSearchView");
     this.view       = view;
     this.repository = repository;
 }
コード例 #2
0
 public ClientSearchPresenter(IClientSearchView view, ClientSearchModel model)
 {
     _view             = view;
     _model            = model;
     _clientRepository = _model.ClientRepository;
 }
コード例 #3
0
 public static ClientSearchPresenter Create(IClientSearchView view)
 {
     return(new ClientSearchPresenter(view, RepositoryFactory.CreateClientRepository()));
 }
コード例 #4
0
 public ClientSearchPresenter(IClientSearchView view, ClientSearchModel model)
 {
     _view = view;
     _model = model;
     _clientRepository = _model.ClientRepository;
 }