当前位置: 首页>>代码示例>>C#>>正文


C# IProductRepository类代码示例

本文整理汇总了C#中IProductRepository的典型用法代码示例。如果您正苦于以下问题:C# IProductRepository类的具体用法?C# IProductRepository怎么用?C# IProductRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IProductRepository类属于命名空间,在下文中一共展示了IProductRepository类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ProductService

        public ProductService(
                            IProductRepository productRepository,
                            ICacheStorage cacheStorage,
                            IConfigurationRepository configurationRepository,
                            ILoggingService loggingService)
        {
            if (productRepository == null)
            {
                throw new ArgumentNullException("ProductRepository");
            }

            if (cacheStorage == null)
            {
                throw new ArgumentNullException("CacheStorage");
            }

            if (configurationRepository == null)
            {
                throw new ArgumentException("Configuration");
            }

            if (loggingService == null)
            {
                throw new ArgumentException("Logging");
            }

            this._productRepository = productRepository;
            this._cacheStorage = cacheStorage;
            this._configurationRepository = configurationRepository;
            this._loggingService = loggingService;
        }
开发者ID:richardkundl,项目名称:SampleDI-IoC,代码行数:31,代码来源:ProductService.cs

示例2: ProductPresenter

 public ProductPresenter(IProductView view, IProductRepository repository, IOpenFileDialog openFileDialog)
 {
     this.view = view;
     view.Initialize(this);
     this.repository = repository;
     this.openFileDialog = openFileDialog;
 }
开发者ID:snahider,项目名称:SOLID,代码行数:7,代码来源:ProductPresenter.cs

示例3: BuyerRepositoryService

 public BuyerRepositoryService()
 {
     IoCManagerCore.Start();
     _buyerRepository = IoCManagerCore.Kernel.Get<IBuyerRepository>();
     _productRepository = IoCManagerCore.Kernel.Get<IProductRepository>();
     _wrapper = new WrapperBuyer();
 }
开发者ID:AndrewGumenyuk,项目名称:ManagerPaycheck,代码行数:7,代码来源:BuyerRepositoryService.svc.cs

示例4: AddInvoiceLineItemCommandHandler

 public AddInvoiceLineItemCommandHandler(IInvoiceRepository documentRepository, IProductRepository productRepository, CokeDataContext cokeDataContext) 
     : base(cokeDataContext)
 {
     _cokeDataContext = cokeDataContext;
     _documentRepository = documentRepository;
     _productRepository = productRepository;
 }
开发者ID:asanyaga,项目名称:BuildTest,代码行数:7,代码来源:AddInvoiceLineItemCommandHandler.cs

示例5: CartController

 //El constructor va a pedir que le pasen el producto
 public CartController(
     IProductRepository productRepository,
     IOrderProcessor orderProcessor)
 {
     _productRepository = productRepository;
     _orderProcessor = orderProcessor;
 }
开发者ID:jesulink2514,项目名称:LearnITStore,代码行数:8,代码来源:CartController.cs

示例6: HomeController

 public HomeController(ICategoryRepository categoryRepository, IProductRepository productRepository,
     IConstants constants)
 {
     _categoryRepository = categoryRepository;
     _productRepository = productRepository;
     _constants = constants;
 }
开发者ID:stephengodbold,项目名称:searchpdproj,代码行数:7,代码来源:HomeController.cs

示例7: EcommerceService

        public EcommerceService(IOrderCoordinator orderCoordinator, IProductRepository productRepository,
            IVoucherRepository voucherRepository, IContactService contactService,
            IBespokePricingHandlerFactory bespokePricingHandlerFactory)
        {
            if (orderCoordinator == null)
            {
                throw new ArgumentNullException("orderCoordinator");
            }
            _orderCoordinator = orderCoordinator;
            if (productRepository == null)
            {
                throw new ArgumentNullException("productRepository");
            }
            _productRepository = productRepository;
            if (voucherRepository == null)
            {
                throw new ArgumentNullException("voucherRepository");
            }
            _voucherRepository = voucherRepository;
            if (contactService == null) throw new ArgumentNullException("contactService");
            _contactService = contactService;

            if (bespokePricingHandlerFactory == null)
            {
                throw new ArgumentNullException("bespokePricingHandlerFactory");
            }
            _bespokePricingHandlerFactory = bespokePricingHandlerFactory;
        }
开发者ID:jamesdrever,项目名称:cpx,代码行数:28,代码来源:ECommerceService.cs

示例8: ProductDetailsPresenter

        public ProductDetailsPresenter(IProductDetailsView view, IProductRepository productRepository,
		                               IEntityViewModelMapper entityViewModelMapper)
        {
            _view = view;
            _productRepository = productRepository;
            _entityViewModelMapper = entityViewModelMapper;
        }
开发者ID:davidadsit,项目名称:MVPWebFormsReferenceArchitecture,代码行数:7,代码来源:ProductDetailsPresenter.cs

示例9: SearchController

 public SearchController(ISubcategoryProductRepository subcategoryProductRepository, IProductRepository productRepository, 
     ProductFilterViewModel productFilterViewModel)
 {
     this.subcategoryProductRepository = subcategoryProductRepository;
     this.productRepository = productRepository;
     this.productFilterViewModel = productFilterViewModel;
 }
开发者ID:HoenDHime,项目名称:eShop,代码行数:7,代码来源:SearchController.cs

示例10: ProductTypeRepositoryService

 public ProductTypeRepositoryService()
 {
     IoCManagerCore.Start();
      wrapperTypeProduct = new WrapperProductType();
     _productRepository = IoCManagerCore.Kernel.Get<IProductRepository>();
     _productTypeRepository = IoCManagerCore.Kernel.Get<IProductTypeRepository>();
 }
开发者ID:AndrewGumenyuk,项目名称:ManagerPaycheck,代码行数:7,代码来源:ProductTypeRepositoryService.svc.cs

示例11: ProductCatalogService

        public ProductCatalogService(IProductTitleRepository productTitleRepository, IProductRepository productRepository,
			ICategoryRepository categoryRepository)
        {
            _productTitleRepository = productTitleRepository;
            _productRepository = productRepository;
            _categoryRepository = categoryRepository;
        }
开发者ID:afrancocode,项目名称:Storefront,代码行数:7,代码来源:ProductCatalogService.cs

示例12: CartServiceTests

 public CartServiceTests()
 {
     factory = Substitute.For<ICartFactory>();
     cartRepository = Substitute.For<ICartRepository>();
     productRepository = Substitute.For<IProductRepository>();
     sut = new CartService(cartRepository, productRepository, factory);
 }
开发者ID:SergeyVolodko,项目名称:WebShopTask,代码行数:7,代码来源:CartServiceTests.cs

示例13: ProductController

 public ProductController(IProductRepository productRepo,
                         ICategoryRepository categoryRepo)
 {
     _categoryRepo = categoryRepo;
     _productRepo = productRepo;
     PageSize = 5;
 }
开发者ID:awt2gbg2012,项目名称:Lektion12,代码行数:7,代码来源:ProductController.cs

示例14: ProductController

        public ProductController(IProductDataService productDataService, 
            IBrandDataService brandDataService,
            IOrderRepository orderRepo,
            IOrderItemRepository orderItemRepo,
            IOrderLogRepository orderLogRepo,
            IProductRepository productRepo,
            IFavoriteRepository favoriteRepo,
            IPromotionRepository promotionRepo,
            IOrder2ExRepository orderexRepo,
            IRMA2ExRepository rmaexRepo,
           IInventoryRepository inventoryRepo)
        {
            _productDataService = productDataService;
            _passHelper = new PassHelper(brandDataService);
            _orderRepo = orderRepo;
            _orderItemRepo = orderItemRepo;
            _orderLogRepo = orderLogRepo;
            _productRepo = productRepo;
            _favoriteRepo = favoriteRepo;
            _promotionRepo = promotionRepo;
            _orderexRepo = orderexRepo;
            _rmaexRepo = rmaexRepo;
            _inventoryRepo = inventoryRepo;

        }
开发者ID:shimerlj,项目名称:ytoo.service,代码行数:25,代码来源:ProductController.cs

示例15: ProductController

 public ProductController(IProductRepository productRepository, ICategoryRepository categoryRepository, 
     ICategoryPresenter categoryPresenter)
 {
     _productRepository = productRepository;
     _categoryRepository = categoryRepository;
     _categoryPresenter = categoryPresenter;
 }
开发者ID:alpinebreeze,项目名称:CatalogManager,代码行数:7,代码来源:ProductController.cs


注:本文中的IProductRepository类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。