Пример #1
0
        public CustomersControllerDependencyBlock(
            ICreateCustomerProcessor createCustomerProcessor,
            IInquiryCustomerProcessor inquiryCustomerProcessor,
            IInquiryAllCustomersProcessor allCustomerProcessor)

        {
            CreateCustomerProcessor      = createCustomerProcessor;
            InquiryCustomerProcessor     = inquiryCustomerProcessor;
            InquiryAllCustomersProcessor = allCustomerProcessor;
        }
Пример #2
0
        public AdvertisersController(IUrlHelper urlHelper,
                                     ITypeHelperService typeHelperService,
                                     IPropertyMappingService propertyMappingService,
                                     ICustomersControllerDependencyBlock blockCustomer,
                                     IUsersControllerDependencyBlock blockUser)
        {
            _urlHelper              = urlHelper;
            _typeHelperService      = typeHelperService;
            _propertyMappingService = propertyMappingService;

            _inquiryCustomerProcessor = blockCustomer.InquiryCustomerProcessor;
            _createCustomerProcessor  = blockCustomer.CreateCustomerProcessor;

            _inquiryUserProcessor = blockUser.InquiryUserProcessor;
        }