Example #1
0
        private IPromotionService GetMarketingService()
        {
            Func <IMarketingRepository> foundationRepositoryFactory = () => GetRepository();
            var promotionExtensionManager = new DefaultMarketingExtensionManagerImpl();
            var retVal = new PromotionServiceImpl(foundationRepositoryFactory, promotionExtensionManager);

            return(retVal);
        }
Example #2
0
        private static IPromotionService GetMarketingService()
        {
            Func <IMarketingRepository> foundationRepositoryFactory = () => new MarketingRepositoryImpl("VirtoCommerce", new EntityPrimaryKeyGeneratorInterceptor(), new AuditableInterceptor());
            var promotionExtensionManager = new DefaultMarketingExtensionManagerImpl();
            var retVal = new PromotionServiceImpl(foundationRepositoryFactory, promotionExtensionManager);

            return(retVal);
        }
Example #3
0
        private IPromotionService GetMarketingService()
        {
            var promotionExtensionManager = new DefaultMarketingExtensionManagerImpl();
            var cacheManager = new Moq.Mock <ICacheManager <object> >();
            var retVal       = new PromotionServiceImpl(GetRepository);

            return(retVal);
        }
        private IPromotionService GetMarketingService()
        {
            Func <IMarketingRepository> foundationRepositoryFactory = () => GetRepository();
            var promotionExtensionManager = new DefaultMarketingExtensionManagerImpl();
            var cacheManager = new Moq.Mock <ICacheManager <object> >();
            var retVal       = new PromotionServiceImpl(foundationRepositoryFactory, promotionExtensionManager, cacheManager.Object);

            return(retVal);
        }