本文整理汇总了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;
}
示例2: ProductPresenter
public ProductPresenter(IProductView view, IProductRepository repository, IOpenFileDialog openFileDialog)
{
this.view = view;
view.Initialize(this);
this.repository = repository;
this.openFileDialog = openFileDialog;
}
示例3: BuyerRepositoryService
public BuyerRepositoryService()
{
IoCManagerCore.Start();
_buyerRepository = IoCManagerCore.Kernel.Get<IBuyerRepository>();
_productRepository = IoCManagerCore.Kernel.Get<IProductRepository>();
_wrapper = new WrapperBuyer();
}
示例4: AddInvoiceLineItemCommandHandler
public AddInvoiceLineItemCommandHandler(IInvoiceRepository documentRepository, IProductRepository productRepository, CokeDataContext cokeDataContext)
: base(cokeDataContext)
{
_cokeDataContext = cokeDataContext;
_documentRepository = documentRepository;
_productRepository = productRepository;
}
示例5: CartController
//El constructor va a pedir que le pasen el producto
public CartController(
IProductRepository productRepository,
IOrderProcessor orderProcessor)
{
_productRepository = productRepository;
_orderProcessor = orderProcessor;
}
示例6: HomeController
public HomeController(ICategoryRepository categoryRepository, IProductRepository productRepository,
IConstants constants)
{
_categoryRepository = categoryRepository;
_productRepository = productRepository;
_constants = constants;
}
示例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;
}
示例8: ProductDetailsPresenter
public ProductDetailsPresenter(IProductDetailsView view, IProductRepository productRepository,
IEntityViewModelMapper entityViewModelMapper)
{
_view = view;
_productRepository = productRepository;
_entityViewModelMapper = entityViewModelMapper;
}
示例9: SearchController
public SearchController(ISubcategoryProductRepository subcategoryProductRepository, IProductRepository productRepository,
ProductFilterViewModel productFilterViewModel)
{
this.subcategoryProductRepository = subcategoryProductRepository;
this.productRepository = productRepository;
this.productFilterViewModel = productFilterViewModel;
}
示例10: ProductTypeRepositoryService
public ProductTypeRepositoryService()
{
IoCManagerCore.Start();
wrapperTypeProduct = new WrapperProductType();
_productRepository = IoCManagerCore.Kernel.Get<IProductRepository>();
_productTypeRepository = IoCManagerCore.Kernel.Get<IProductTypeRepository>();
}
示例11: ProductCatalogService
public ProductCatalogService(IProductTitleRepository productTitleRepository, IProductRepository productRepository,
ICategoryRepository categoryRepository)
{
_productTitleRepository = productTitleRepository;
_productRepository = productRepository;
_categoryRepository = categoryRepository;
}
示例12: CartServiceTests
public CartServiceTests()
{
factory = Substitute.For<ICartFactory>();
cartRepository = Substitute.For<ICartRepository>();
productRepository = Substitute.For<IProductRepository>();
sut = new CartService(cartRepository, productRepository, factory);
}
示例13: ProductController
public ProductController(IProductRepository productRepo,
ICategoryRepository categoryRepo)
{
_categoryRepo = categoryRepo;
_productRepo = productRepo;
PageSize = 5;
}
示例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;
}
示例15: ProductController
public ProductController(IProductRepository productRepository, ICategoryRepository categoryRepository,
ICategoryPresenter categoryPresenter)
{
_productRepository = productRepository;
_categoryRepository = categoryRepository;
_categoryPresenter = categoryPresenter;
}