private IPromotionService GetMarketingService() { Func <IMarketingRepository> foundationRepositoryFactory = () => GetRepository(); var promotionExtensionManager = new DefaultMarketingExtensionManagerImpl(); var retVal = new PromotionServiceImpl(foundationRepositoryFactory, promotionExtensionManager); return(retVal); }
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); }
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); }