/// <summary>
        /// Create new instance tied to current cart and reseller.
        /// </summary>
        public TermsOfServiceProvider(ICartProvider cartProvider, IProductProvider productProvider, IResourceProvider resourceProvider, IResellerProvider resellerProvider)
        {
            if (cartProvider == null)
            {
                throw new ArgumentNullException("cartProvider");
            }

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

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

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

            this.cartProvider = cartProvider;
            this.productProvider = productProvider;
            this.resourceProvider = resourceProvider;
            this.resellerProvider = resellerProvider;
        }
        /// <summary>
        /// Create a new instance of the service.
        /// </summary>
        public OrderPlacementService(
            PaymentUrlProvider urlProvider,
            IProductProvider productProvider,
            RenewalPeriodProvider renewalPeriodProvider,
            IEnumerable<PaymentDataHandler> paymentDataHandlers,
            OrderCreator orderCreator,
            PaymentTransactionCreator paymentTransactionCreator)
        {
            if (urlProvider == null)
            {
                throw new ArgumentNullException("urlProvider");
            }

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

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

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

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

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

            this.urlProvider = urlProvider;
            this.productProvider = productProvider;
            this.renewalPeriodProvider = renewalPeriodProvider;
            this.paymentDataHandlers = paymentDataHandlers;
            this.orderCreator = orderCreator;
            this.paymentTransactionCreator = paymentTransactionCreator;
        }
 public ProductController(IProductProvider productProvider)
 {
     _productProvider = productProvider;
 }
예제 #4
0
 protected ZipMetaProvider(IProductProvider productProvider, IBootProvider bootProvider, ILogger logger)
 {
     ProductProvider = productProvider;
     BootProvider    = bootProvider;
     Logger          = logger;
 }
예제 #5
0
 public ZipCameraListProvider(ICameraMetaProvider cameraProvider, IProductProvider productProvider, IBootProvider bootProvider, ILogger <ZipCameraListProvider> logger)
     : base(productProvider, bootProvider, logger)
 {
     CameraProvider = cameraProvider;
 }
예제 #6
0
 public ProductUrlConverter(IProductProvider productProvider, IProductUrlIdExtractor productUrlIdExtractor, IProductUrlBuilder productUrlBuilder)
 {
     _productUrlIdExtractor = productUrlIdExtractor;
     _productUrlBuilder     = productUrlBuilder;
     _productProvider       = productProvider;
 }
예제 #7
0
 public BLL_Product(IConfiguration iconfiguration)
 {
     _productProvider = new ProductProvider(iconfiguration);
 }
예제 #8
0
 public SdmSourceProvider(IProductProvider productProvider, ILoggerFactory loggerFactory)
     : base(productProvider, loggerFactory.CreateLogger <SdmSourceProvider>())
 {
 }
예제 #9
0
 public PsCameraProvider(IProductProvider productProvider, IEncodingProvider encodingProvider, ICameraBootProvider bootProvider,
                         ICameraCardProvider <PsCardData> cardProvider, IAltProvider altProvider)
     : base(productProvider, encodingProvider, bootProvider, cardProvider)
 {
     AltProvider = altProvider;
 }
예제 #10
0
 public ProductsController(IProductProvider productProvider)
 {
     this.productProvider = productProvider;
 }
예제 #11
0
 protected MlSoftwareDetector(IProductProvider productProvider, ISourceProvider sourceProvider)
     : base(productProvider, sourceProvider)
 {
 }
예제 #12
0
 public CategoryMetaProvider(IProductProvider productProvider)
 {
     Categories = productProvider.GetCategoryNames().ToDictionary(
         n => n,
         CreateCategoryInfo);
 }
예제 #13
0
 public AggregateDownloaderProvider(IServiceActivator serviceActivator, IProductProvider productProvider)
 {
     ServiceActivator     = serviceActivator;
     ProductProvider      = productProvider;
     _downloaderProviders = new Lazy <IEnumerable <IDownloaderProvider> >(GetDownloaderProviders);
 }
예제 #14
0
 public MlSoftwareProvider(IProductProvider productProvider, SoftwareSourceInfo source, CultureInfo language)
     : base(productProvider, source, language)
 {
 }
예제 #15
0
 public ProductsController(IProductProvider provider) =>
 public ProductsController(IProductProvider productProvider, ISiteConfiguration siteConfiguration)
 {
     _productProvider = productProvider;
     _siteConfiguration = siteConfiguration;
 }
예제 #17
0
 public HomeController()
 {
     _productProvider = new ProductProvider();
 }
예제 #18
0
 public Updater UseProductProvider(IProductProvider provider)
 {
     ProductProvider = provider ?? throw new ArgumentNullException();
     return(this);
 }
예제 #19
0
 public InstallActionProvider(MainViewModel mainViewModel, IProductProvider productProvider, ISourceProvider sourceProvider, IServiceActivator serviceActivator)
     : base(mainViewModel, sourceProvider, serviceActivator)
 {
     ProductProvider = productProvider;
 }
예제 #20
0
 public NightlyMlSoftwareDetector(IProductProvider productProvider, ISourceProvider sourceProvider)
     : base(productProvider, sourceProvider)
 {
 }
예제 #21
0
 public ProductController(IProductProvider productprovider, ICategoryProvider item)
 {
     _context  = productprovider;
     _context2 = item;
 }
예제 #22
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="productProvider">IProductProvider instance</param>
 public ProductSitemapProvider(IProductProvider productProvider)
 {
     _productProvider = productProvider ?? throw new ArgumentNullException(nameof(productProvider));
 }
 public ProductService(IProductProvider productProvider, IOrderProvider orderProvider, IOfferProvider offerProvider)
 {
     _productProvider = productProvider;
     _orderProvider   = orderProvider;
     _offerProvider   = offerProvider;
 }
예제 #24
0
 public AggregateTipProvider(MainViewModel mainViewModel, IServiceActivator serviceActivator, IProductProvider productProvider, ILoggerFactory loggerFactory)
     : base(loggerFactory)
 {
     MainViewModel    = mainViewModel;
     ServiceActivator = serviceActivator;
     ProductProvider  = productProvider;
 }
예제 #25
0
 public void Initialize()
 {
     productsProvider = DependancyManager.Resolve <IProductProvider>();
 }
예제 #26
0
 public EosCameraProvider(IProductProvider productProvider, IEncodingProvider encodingProvider, ICameraBootProvider bootProvider, ICameraCardProvider <EosCardData> cardProvider)
     : base(productProvider, encodingProvider, bootProvider, cardProvider)
 {
 }
예제 #27
0
 public ChdkSoftwareDetector(IProductProvider productProvider, ISourceProvider sourceProvider)
     : base(productProvider, sourceProvider)
 {
 }
예제 #28
0
 public ProductController(IProductProvider productProvider, IProductHandler productHandler, IProductValidator productValidator)
 {
     this.productProvider  = productProvider;
     this.productHandler   = productHandler;
     this.productValidator = productValidator;
 }
예제 #29
0
 public MlProductDetector(IProductProvider productProvider, IBootProvider bootProvider)
     : base(productProvider, bootProvider)
 {
 }
예제 #30
0
 public ProceedToBuyController(IProceedToBuyProvider provider, IVendorProvider vendorProvider, IProductProvider productProvider)
 {
     this._provider        = provider;
     this._vendor          = vendorProvider;
     this._productProvider = productProvider;
 }
예제 #31
0
 public ShoppingCartFileStorage(string path, IProductProvider productProvider)
 {
     Path            = path;
     ProductProvider = productProvider;
 }
예제 #32
0
 protected ProductSourceProvider(IProductProvider productProvider, ILogger logger)
     : base(logger)
 {
     ProductProvider = productProvider;
 }
예제 #33
0
 public ProductUrlConverter(IProductProvider productProvider, IProductUrlIdExtractor productUrlIdExtractor, IProductUrlBuilder productUrlBuilder)
 {
     _productUrlIdExtractor = productUrlIdExtractor;
     _productUrlBuilder = productUrlBuilder;
     _productProvider = productProvider;
 }
예제 #34
0
 public CameraProvider(IProductProvider productProvider, ILoggerFactory loggerFactory)
     : base(loggerFactory)
 {
     ProductProvider = productProvider;
 }