Esempio n. 1
0
 public PayPalPaymentProcessor(
     OrderService orderService,
     SettingService settingService)
 {
     _orderService = orderService;
     _settingsService = settingService;
 }
Esempio n. 2
0
 public iDealController(
     SettingService keyValueService,
     PaymentService paymentService,
     PaymentMethodService paymentMethodService)
 {
     _keyValueService = keyValueService;
     _paymentService = paymentService;
     _paymentMethodService = paymentMethodService;
 }
Esempio n. 3
0
        public ActionResult Index(FormCollection formcollection)
        {
            SettingService service = new SettingService();

            for (int i = 0; i < formcollection.Count; i++ )
                {
                    string key = formcollection.AllKeys[i];

                    string value = formcollection[i];
                    service.Update(key, value);
                }
            return RedirectToAction("Index");
        }
Esempio n. 4
0
 public ProductController(
         SettingService settingService,
         ProductService productService,
         ProductTypeService productTypeService,
         BrandService brandService,
         CategoryService categoryService)
 {
     _settingService = settingService;
     _productService = productService;
     _productTypeService = productTypeService;
     _brandService = brandService;
     _categoryService = categoryService;
 }
        public void Setup()
        {
            pageData = new Mock<IPageData>();
            var settingData = new Mock<ISettingData>();
            var log = new Mock<LoggingService>();
            var userData = new Mock<IUserData>();
            var configurationManager = new Mock<IConfigurationAdapter>();


            SettingService settingService = new SettingService(settingData.Object, configurationManager.Object);

            PageService pageService = new PageService(pageData.Object, settingData.Object, log.Object,
                                                       userData.Object, null);

            c = new HomeController(pageService, settingService, log.Object);
        }
        private void InitGlobalSettings(CommerceInstance instance)
        {
            var settings = new GlobalSettings
            {
                Image = new ImageSettings
                {
                    Types =
                    {
                        new ImageType("List", 240, 240),
                        new ImageType("Detail", 300, 300, true),
                        new ImageType("Thumbnail", 240, 240),
                        new ImageType("Cart", 50, 50)
                    }
                }
            };

            var service = new SettingService(instance.Database);
            service.Set(settings);
        }
 public ProductAccessoryService(SettingService settings)
 {
     _settings = settings;
 }
 public SettingsController(SettingService settingService)
 {
     this.settingService = settingService;
 }
Esempio n. 9
0
 public HomeController(PageService pageService, SettingService settingService, LoggingService log)
 {
     this.pageService = pageService;
     this.settingService = settingService;
     this.log = log;
 }
Esempio n. 10
0
 public SettingController(SettingService settings, PredefinedCustomFieldService predefinedFields)
 {
     _settings = settings;
     _predefinedFields = predefinedFields;
 }
Esempio n. 11
0
 public SettingServiceTests()
 {
     _settingService = new SettingService(Session, CurrentSite);
     _settingService.ResetSettingCache();
 }