예제 #1
0
 public void Initialize()
 {
     _mockery = new Mockery();
     _view = _mockery.NewMock<IEmployeeView>();
     _service = _mockery.NewMock<IEmployeeService>();
     _model = new EmployeeModel();
     _presenter = new EmployeePresenter(_view, _model, _service);
 }
예제 #2
0
 public EmployeePresenter(IEmployeeView view, 
     EmployeeModel model,
     IEmployeeService service)
 {
     _view = view;
     _service = service;
     _model = model;
     _model.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(Model_PropertyChanged);
 }