Ejemplo n.º 1
0
        public OrderDetailsPresenter(
            [CreateNew] IOrdersController controller,
            [ServiceDependency] IProductService productService,
            [ServiceDependency] IBusinessPresentationConverter <OrderDetail, OrderItemLine> orderDetailsConverter)
        {
            controller.VerifyOrderEntryFlowIsStarted();

            _controller            = controller;
            _productService        = productService;
            _orderDetailsConverter = orderDetailsConverter;
        }
Ejemplo n.º 2
0
        public OrderReviewPresenter([CreateNew] IOrdersController controller)
        {
            if (controller == null)
            {
                throw new ArgumentNullException("controller");
            }

            controller.VerifyOrderEntryFlowIsStarted();

            _controller = controller;
        }
Ejemplo n.º 3
0
        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;
        }