public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEmployeeDetailPresenter employeeDetailPresenter) { View = view; EmployeeDetailPresenter = employeeDetailPresenter; View.Presenter = this; Repository = repository; }
public OrgChartPresenter(IOrgChartView view, IApplicationController appController, IEmployeeRepository repository) { View = view; AppController = appController; View.Presenter = this; Repository = repository; }
public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEmployeeDetailPresenter employeeDetailPresenter, ICommand<AddNewEmployeeData> addNewEmployeeCommand) { View = view; EmployeeDetailPresenter = employeeDetailPresenter; AddNewEmployeeCommand = addNewEmployeeCommand; View.Presenter = this; Repository = repository; }
public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEmployeeDetailPresenter employeeDetailPresenter, ICommand <AddNewEmployeeData> addNewEmployeeCommand) { View = view; EmployeeDetailPresenter = employeeDetailPresenter; AddNewEmployeeCommand = addNewEmployeeCommand; View.Presenter = this; Repository = repository; }
public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEventPublisher eventPublisher, ICommand <AddNewEmployeeData> addNewEmployeeCommand) { View = view; AddNewEmployeeCommand = addNewEmployeeCommand; View.Presenter = this; Repository = repository; EventPublisher = eventPublisher; }
protected override void SharedContext() { view = MockRepository.GenerateMock<IOrgChartView>(); bob = new Employee("Bob", "Jones", "*****@*****.**"); employeeList = new List<Employee>{bob}; appController = MockRepository.GenerateMock<IApplicationController>(); employeeRepo = MockRepository.GenerateMock<IEmployeeRepository>(); employeeRepo.Stub(r => r.GetEmployeeOrgChart()).Return(employeeList); }
protected override void SharedContext() { view = MockRepository.GenerateMock <IOrgChartView>(); bob = new Employee("Bob", "Jones", "*****@*****.**"); employeeList = new List <Employee> { bob }; appController = MockRepository.GenerateMock <IApplicationController>(); employeeRepo = MockRepository.GenerateMock <IEmployeeRepository>(); employeeRepo.Stub(r => r.GetEmployeeOrgChart()).Return(employeeList); }