Exemplo n.º 1
0
        private StoreModuleController GetStoreController()
        {
            Func <IPlatformRepository> platformRepositoryFactory = () => new PlatformRepository("VirtoCommerce", new EntityPrimaryKeyGeneratorInterceptor(), new AuditableInterceptor(null));
            Func <IStoreRepository>    repositoryFactory         = () => new StoreRepositoryImpl("VirtoCommerce", new EntityPrimaryKeyGeneratorInterceptor(), new AuditableInterceptor(null));

            var dynamicPropertyService = new DynamicPropertyService(platformRepositoryFactory);
            var storeService           = new StoreServiceImpl(repositoryFactory, GetCommerceService(), null, dynamicPropertyService, null, null, null, null);

            var controller = new StoreModuleController(storeService, null, null, null, null, null, null);

            return(controller);
        }
Exemplo n.º 2
0
        private StoreModuleController GetStoreController()
        {
            Func <IStoreRepository> repositoryFactory = () =>
            {
                return(new StoreRepositoryImpl("VirtoCommerce", new EntityPrimaryKeyGeneratorInterceptor(), new AuditableInterceptor()));
            };

            var shippingService = new ShippingServiceImpl();
            var storeService    = new StoreServiceImpl(repositoryFactory, GetCommerceService(), null, null, null);
            var controller      = new StoreModuleController(storeService, null, null);

            return(controller);
        }