public void CreateTest()
        {
            using (var connection = new SqlConnection(ConnectionString))
            {
                connection.Open();

                var productAttributeMappingService = new ProductAttributeMappingService(connection);

                // using (var transaction = new TransactionScope(TransactionScopeOption.RequiresNew))
                {
                    productAttributeMappingService.Create(1, 3, false, new Dictionary <String, Object>
                    {
                        { "Test Property 1", Math.PI },
                        { "Test Property 2", 42 },
                        { "Test Property 3", "Blaat" }
                    });
                }
            }
        }
Beispiel #2
0
        public BaseController()
        {
            _relatedProductService = new RelatedProductService();
            _productSpecificationAttributeMappingService = new ProductSpecificationAttributeMappingService();
            _specificationAttributeValueService          = new SpecificationAttributeValueService();
            _specificationAttributeService = new SpecificationAttributeService();
            _prodcutAttributeValueService  = new ProdcutAttributeValueService();
            _productAttributeService       = new ProductAttributeService();
            _productCategoryMappingService = new ProductCategoryMappingService();
            _categoryService = new CategoryService();
            _productPictureMappingService = new ProductPictureMappingService();
            _pictureService           = new PictureService();
            _productService           = new ProductService();
            _brandService             = new BrandService();
            _productTagMappingService = new ProductTagMappingService();
            _produtTagService         = new ProductTagService();
            _predefinedProductAttributeValueService = new PredefinedProductAttributeValueService();
            _productAttributeMappingService         = new ProductAttributeMappingService();

            _customerService            = new CustomerService();
            _customerRoleService        = new CustomerRoleService();
            _customerRoleMappingService = new CustomerRolMappingService();
        }