public ApprovalsPresenter([ServiceDependency] IOrdersService ordersService, [ServiceDependency] IBusinessPresentationConverter <Order, OrderInfo> ordersConverter, [ServiceDependency] IHttpContextLocatorService httpContextLocatorService) { _ordersService = ordersService; _ordersConverter = ordersConverter; _httpContextLocatorService = httpContextLocatorService; }
public OrderPreviewPresenter( [ServiceDependency] IBusinessPresentationConverter <Order, OrderInfo> ordersConverter, [ServiceDependency] IBusinessPresentationConverter <OrderDetail, OrderItemLine> orderDetailsConverter ) { _ordersConverter = ordersConverter; _orderDetailsConverter = orderDetailsConverter; }
public void InitMVP() { view = new MockDetails(); controller = new MockOrdersController(); productService = new MockProductService(); orderDetailsConverter = new OrderDetailsConverter(productService); presenter = new OrderDetailsPresenter(controller, productService, orderDetailsConverter); presenter.View = view; }
public void InitMVP() { view = new MockSearchOrders(); ordersService = new MockOrdersService(); orderInfoConverter = new OrdersConverter(new MockCustomerService(), new MockEmployeeService(), new MockGenericConverter <Employee, EmployeeDisplay>()); presenter = new SearchOrdersPresenter(ordersService, orderInfoConverter); presenter.View = view; }
public void InitMVP() { view = new MockApprovals(); ordersService = new MockOrdersService(); ordersConverter = new OrdersConverter(new MockCustomerService(), new MockEmployeeService(), new MockGenericConverter <Employee, EmployeeDisplay>()); httpContextLocatorService = new MockHttpContextLocatorService(); presenter = new ApprovalsPresenter(ordersService, ordersConverter, httpContextLocatorService); presenter.View = view; }
public void InitMVP() { view = new MockApprovals(); ordersService = new MockOrdersService(); ordersConverter = new OrdersConverter(new MockCustomerService(), new MockEmployeeService(), new MockGenericConverter<Employee,EmployeeDisplay>()); httpContextLocatorService = new MockHttpContextLocatorService(); presenter = new ApprovalsPresenter(ordersService, ordersConverter, httpContextLocatorService); presenter.View = view; }
public OrdersConverter( [ServiceDependency] ICustomerService customerService, [ServiceDependency] IEmployeeService employeeService, [ServiceDependency] IBusinessPresentationConverter <Employee, EmployeeDisplay> employeeConverter ) { _customerService = customerService; _employeeService = employeeService; _employeeConverter = employeeConverter; }
public void InitMVP() { view = new MockSavedDrafts(); ordersService = new MockOrdersService(); ordersController = new MockOrdersController(); ordersConverter = new OrderManagement.Orders.Converters.OrdersConverter(new MockCustomerService(), new MockEmployeeService(), new MockGenericConverter<Employee, EmployeeDisplay>()); httpContextLocatorService = new MockHttpContextLocatorService(); presenter = new SavedDraftsPresenter(ordersService, ordersController, ordersConverter, httpContextLocatorService); presenter.View = view; }
public void InitMVP() { view = new MockSavedDrafts(); ordersService = new MockOrdersService(); ordersController = new MockOrdersController(); ordersConverter = new OrderManagement.Orders.Converters.OrdersConverter(new MockCustomerService(), new MockEmployeeService(), new MockGenericConverter <Employee, EmployeeDisplay>()); httpContextLocatorService = new MockHttpContextLocatorService(); presenter = new SavedDraftsPresenter(ordersService, ordersController, ordersConverter, httpContextLocatorService); presenter.View = view; }
public SavedDraftsPresenter( [ServiceDependency] IOrdersService ordersService, [CreateNew] IOrdersController ordersController, [ServiceDependency] IBusinessPresentationConverter <Order, OrderInfo> ordersConverter, [ServiceDependency] IHttpContextLocatorService httpContextLocatorService) { _ordersService = ordersService; _ordersController = ordersController; _ordersConverter = ordersConverter; _httpContextLocatorService = httpContextLocatorService; }
public OrderDetailsPresenter( [CreateNew] IOrdersController controller, [ServiceDependency] IProductService productService, [ServiceDependency] IBusinessPresentationConverter <OrderDetail, OrderItemLine> orderDetailsConverter) { controller.VerifyOrderEntryFlowIsStarted(); _controller = controller; _productService = productService; _orderDetailsConverter = orderDetailsConverter; }
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; }
public OrderInformationPresenter([CreateNew] IOrdersController controller, [ServiceDependency] IEmployeeService employeeService, [ServiceDependency] ICustomerService customerService, [ServiceDependency] IPostalInfoLookupService postalInfoLookupService, [ServiceDependency] IBusinessPresentationConverter <Employee, EmployeeDisplay> employeeConverter) { controller.VerifyOrderEntryFlowIsStarted(); _controller = controller; _employeeService = employeeService; _customerService = customerService; _postalInfoLookupService = postalInfoLookupService; _employeeConverter = employeeConverter; }
public void InitMVP() { view = new MockSearchOrders(); ordersService = new MockOrdersService(); orderInfoConverter = new OrdersConverter(new MockCustomerService(), new MockEmployeeService(), new MockGenericConverter<Employee, EmployeeDisplay>()); presenter = new SearchOrdersPresenter(ordersService, orderInfoConverter); presenter.View = view; }
public SearchOrdersPresenter([ServiceDependency] IOrdersService ordersService, [ServiceDependency] IBusinessPresentationConverter <Order, OrderInfo> ordersConverter) { _ordersService = ordersService; _ordersConverter = ordersConverter; }