예제 #1
0
        public override void FixtureSetup()
        {
            base.FixtureSetup();

            _provider = (ProductIndexer)ExamineManager.Instance.IndexProviderCollection["MerchelloProductIndexer"];
            _provider.RebuildIndex();
        }
예제 #2
0
        private static void DeleteProductVariantFromIndex(IProductVariant productVariant)
        {
            var cache = new VirtualProductContentCache();

            cache.ClearVirtualCache(productVariant.ProductKey);
            ProductIndexer.DeleteFromIndex(((ProductVariant)productVariant).ExamineId.ToString(CultureInfo.InvariantCulture));
        }
예제 #3
0
        private static void IndexProductVariant(IProductVariant productVariant)
        {
            var cache = new VirtualProductContentCache();

            cache.ClearVirtualCache(productVariant.ProductKey);
            ProductIndexer.ReIndexNode(productVariant.SerializeToXml().Root, IndexTypes.ProductVariant);
        }
예제 #4
0
        public override void FixtureSetup()
        {
            base.FixtureSetup();
            var warehouseService = this.PreTestDataWorker.WarehouseService;

            this._warehouse = warehouseService.GetDefaultWarehouse();

            this._provider = (ProductIndexer)ExamineManager.Instance.IndexProviderCollection["MerchelloProductIndexer"];
            this._provider.RebuildIndex();
        }
예제 #5
0
 private static void DeleteProductVariantFromIndex(IProductVariant productVariant)
 {
     ProductIndexer.DeleteFromIndex(((ProductVariant)productVariant).ExamineId.ToString(CultureInfo.InvariantCulture));
 }
예제 #6
0
 private static void DeleteProductFromIndex(IProduct product)
 {
     ProductIndexer.DeleteProductFromIndex(product);
 }
예제 #7
0
 private static void IndexProductVariant(IProductVariant productVariant)
 {
     ProductIndexer.ReIndexNode(productVariant.SerializeToXml().Root, IndexTypes.ProductVariant);
 }
예제 #8
0
 private static void IndexProduct(IProduct product)
 {
     ProductIndexer.AddProductToIndex(product);
 }
예제 #9
0
 public void LaunchInstance()
 {
     ProductIndexer.List();
     CategoriesListener.List();
 }