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;
 }
예제 #2
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;
 }