コード例 #1
0
		private IPromotionService GetMarketingService()
		{
			Func<IMarketingRepository> foundationRepositoryFactory = () => GetRepository();
			var promotionExtensionManager = new DefaultMarketingExtensionManagerImpl();
			var retVal = new PromotionServiceImpl(foundationRepositoryFactory, promotionExtensionManager);
			return retVal;
		}
コード例 #2
0
		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;
		}
コード例 #3
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;
		}