예제 #1
0
 public void InitMVP()
 {
     productService        = new MockProductService();
     customerService       = new MockCustomerService();
     employeeService       = new MockEmployeeService();
     employeeConverter     = new MockGenericConverter <Employee, EmployeeDisplay>();
     ordersConverter       = new MockGenericConverter <Order, OrderInfo>();
     orderDetailsConverter = new OrderDetailsConverter(productService);
     view           = new MockOrderPreviewPart();
     presenter      = new OrderPreviewPresenter(ordersConverter, orderDetailsConverter);
     presenter.View = view;
 }
 public void InitMVP()
 {
     productService = new MockProductService();
     customerService = new MockCustomerService();
     employeeService = new MockEmployeeService();
     employeeConverter = new MockGenericConverter<Employee, EmployeeDisplay>();
     ordersConverter = new MockGenericConverter<Order, OrderInfo>();
     orderDetailsConverter = new OrderDetailsConverter(productService);
     view = new MockOrderPreviewPart();
     presenter = new OrderPreviewPresenter(ordersConverter, orderDetailsConverter);
     presenter.View = view;
 }