Exemplo n.º 1
0
        public override void TestSetup()
        {
            base.TestSetup();

            _parser     = new global::ZIndex.DNN.NBrightImport.Import.ProductsParser();
            _categories = new List <Category>
            {
                new Category {
                    Name = "Root", Id = 0
                },
                new Category {
                    Name = "Path1", Id = 1
                },
                new Category {
                    Name = "Path11", Id = 11
                },
                new Category {
                    Name = "Path12", Id = 12
                },
                new Category {
                    Name = "Path2", Id = 2
                },
            };

            _actualProducts = _parser.Parse(StoreFiles, _categories);//Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"FolderParser\Root"), _categories);
        }
Exemplo n.º 2
0
        public override void TestSetup()
        {
            base.TestSetup();

            StoreFiles = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"StoreSamples\Dance's Passion 2017");

            _productParser    = new ProductsParser();
            _categoriesParser = new CategoriesParser();

            _actualCategories = _categoriesParser.Parse(StoreFiles);
            _actualProducts   = _productParser.Parse(StoreFiles, _actualCategories);//Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"FolderParser\Root"), _categories);
        }