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); }
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); }