コード例 #1
0
 public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEmployeeDetailPresenter employeeDetailPresenter)
 {
     View = view;
     EmployeeDetailPresenter = employeeDetailPresenter;
     View.Presenter          = this;
     Repository = repository;
 }
コード例 #2
0
 public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEmployeeDetailPresenter employeeDetailPresenter)
 {
     View = view;
     EmployeeDetailPresenter = employeeDetailPresenter;
     View.Presenter = this;
     Repository = repository;
 }
コード例 #3
0
 public OrgChartPresenter(IOrgChartView view, IApplicationController appController, IEmployeeRepository repository)
 {
     View           = view;
     AppController  = appController;
     View.Presenter = this;
     Repository     = repository;
 }
コード例 #4
0
 public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEmployeeDetailPresenter employeeDetailPresenter, ICommand<AddNewEmployeeData> addNewEmployeeCommand)
 {
     View = view;
     EmployeeDetailPresenter = employeeDetailPresenter;
     AddNewEmployeeCommand = addNewEmployeeCommand;
     View.Presenter = this;
     Repository = repository;
 }
コード例 #5
0
 public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEmployeeDetailPresenter employeeDetailPresenter, ICommand <AddNewEmployeeData> addNewEmployeeCommand)
 {
     View = view;
     EmployeeDetailPresenter = employeeDetailPresenter;
     AddNewEmployeeCommand   = addNewEmployeeCommand;
     View.Presenter          = this;
     Repository = repository;
 }
コード例 #6
0
 public OrgChartPresenter(IOrgChartView view, IEmployeeRepository repository, IEventPublisher eventPublisher, ICommand <AddNewEmployeeData> addNewEmployeeCommand)
 {
     View = view;
     AddNewEmployeeCommand = addNewEmployeeCommand;
     View.Presenter        = this;
     Repository            = repository;
     EventPublisher        = eventPublisher;
 }
コード例 #7
0
            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);
            }
コード例 #8
0
            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);
            }