Esempio n. 1
0
        internal static void IntegrationTest()
        {
            UnitTest();

            //CatalogUrlResolvingService.Use(new CatalogUrlResolvingService()); //not yet (repo)
            DiscountCalculationService.Actual();
            DiscountService.Actual();
            ProductDiscountService.Actual();
            ProductDiscountRepository.SetupNewMock().Setup(m => m.GetAll(It.IsAny <ILocalization>())).Returns(new List <DiscountProduct>());
            OrderUpdatingService.Actual();
            OrderService.Actual();
            UrlRewritingService.Actual();
            VATCheckService.Use(new ViesVatCheckService());
            //StoreService.Actual(); // todo!
            //CountriesRepository.Use(new UwebshopApplicationCachedCountriesRepository()); // werken nog niet ivm HtppContext.Current
            //VATCountriesRepository.Use(new UwebshopApplicationCachedVATCountriesRepository());

            //ProductService.Actual(); // maybe move Localize somewhere else :'(

            StoreFromUrlDeterminationService.Actual();


            OrderDiscountService.Actual();

            UrlFormatService.Actual();
            ProductUrlService.Actual();
            CategoryCatalogUrlService.Actual();
            UrlLocalizationService.Actual();
            UrlService.Actual();

            InitializeServiceLocators();
        }