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