public OrdersControllerDependencyBlock(ICreateOrderProcessor createOrderProcessor,
                                               IInquiryOrderProcessor inquiryOrderProcessor,
                                               IUpdateOrderProcessor updateOrderProcessor,
                                               IInquiryAllOrdersProcessor allOrderProcessor,
                                               IDeleteOrderProcessor deleteOrderProcessor)

        {
            CreateOrderProcessor      = createOrderProcessor;
            InquiryOrderProcessor     = inquiryOrderProcessor;
            UpdateOrderProcessor      = updateOrderProcessor;
            InquiryAllOrdersProcessor = allOrderProcessor;
            DeleteOrderProcessor      = deleteOrderProcessor;
        }
Ejemplo n.º 2
0
        public OrdersController(IUrlHelper urlHelper,
                                ITypeHelperService typeHelperService,
                                IPropertyMappingService propertyMappingService,
                                IOrdersControllerDependencyBlock blockOrder,
                                IUsersControllerDependencyBlock blockUser)
        {
            _urlHelper              = urlHelper;
            _typeHelperService      = typeHelperService;
            _propertyMappingService = propertyMappingService;

            _inquiryAllOrdersProcessor = blockOrder.InquiryAllOrdersProcessor;
            _inquiryOrderProcessor     = blockOrder.InquiryOrderProcessor;
            _createOrderProcessor      = blockOrder.CreateOrderProcessor;
            _updateOrderProcessor      = blockOrder.UpdateOrderProcessor;
            _deleteOrderProcessor      = blockOrder.DeleteOrderProcessor;

            _inquiryUserProcessor = blockUser.InquiryUserProcessor;
        }