示例#1
0
        public StoresControllerDependencyBlock(ICreateStoreProcessor createStoreProcessor,
                                               IInquiryStoreProcessor inquiryStoreProcessor,
                                               IUpdateStoreProcessor updateStoreProcessor,
                                               IInquiryAllStoresProcessor allStoreProcessor,
                                               IDeleteStoreProcessor deleteStoreProcessor)

        {
            CreateStoreProcessor      = createStoreProcessor;
            InquiryStoreProcessor     = inquiryStoreProcessor;
            UpdateStoreProcessor      = updateStoreProcessor;
            InquiryAllStoresProcessor = allStoreProcessor;
            DeleteStoreProcessor      = deleteStoreProcessor;
        }
示例#2
0
        public StoresController(IUrlHelper urlHelper,
                                ITypeHelperService typeHelperService,
                                IPropertyMappingService propertyMappingService,
                                IStoresControllerDependencyBlock blockStore,
                                IUsersControllerDependencyBlock blockUser)
        {
            _urlHelper              = urlHelper;
            _typeHelperService      = typeHelperService;
            _propertyMappingService = propertyMappingService;

            _inquiryAllStoresProcessor = blockStore.InquiryAllStoresProcessor;
            _inquiryStoreProcessor     = blockStore.InquiryStoreProcessor;
            _createStoreProcessor      = blockStore.CreateStoreProcessor;
            _updateStoreProcessor      = blockStore.UpdateStoreProcessor;
            _deleteStoreProcessor      = blockStore.DeleteStoreProcessor;

            _inquiryUserProcessor = blockUser.InquiryUserProcessor;
        }