public NotificationServiceUnitTests() { _repositoryMock = new Mock <INotificationRepository>(); _repositoryFactory = () => _repositoryMock.Object; _mockUnitOfWork = new Mock <IUnitOfWork>(); _repositoryMock.Setup(ss => ss.UnitOfWork).Returns(_mockUnitOfWork.Object); _repositoryMock.Setup(x => x.Add(It.IsAny <NotificationEntity>())).Callback(() => _mockStorage.Add("item")); _eventPublisherMock = new Mock <IEventPublisher>(); _memCache = GetCache(); _cacheEntryMock = new Mock <ICacheEntry>(); _cacheEntryMock.SetupGet(c => c.ExpirationTokens).Returns(new List <IChangeToken>()); _notificationSearchServiceMock = new Mock <INotificationSearchService>(); if (!AbstractTypeFactory <NotificationEntity> .AllTypeInfos .SelectMany(x => x.AllSubclasses) .Contains(typeof(EmailNotificationEntity))) { AbstractTypeFactory <NotificationEntity> .RegisterType <EmailNotificationEntity>(); } if (!AbstractTypeFactory <Notification> .AllTypeInfos .SelectMany(x => x.AllSubclasses) .Contains(typeof(RegistrationEmailNotification))) { AbstractTypeFactory <Notification> .RegisterType <RegistrationEmailNotification>(); } }
public DynamicContentServiceImpl(Func <IMarketingRepository> repositoryFactory, IDynamicPropertyService dynamicPropertyService, IEventPublisher eventPublisher, IPlatformMemoryCache platformMemoryCache) { _repositoryFactory = repositoryFactory; _dynamicPropertyService = dynamicPropertyService; _eventPublisher = eventPublisher; _platformMemoryCache = platformMemoryCache; }
public CustomRoleManager(IPermissionsRegistrar knownPermissions, IPlatformMemoryCache memoryCache, IRoleStore <Role> store, IEnumerable <IRoleValidator <Role> > roleValidators, ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, ILogger <RoleManager <Role> > logger, IHttpContextAccessor contextAccessor) : base(store, roleValidators, keyNormalizer, errors, logger, contextAccessor) { _knownPermissions = knownPermissions; _memoryCache = memoryCache; }
public PropertyService(Func <ICatalogRepository> repositoryFactory, IEventPublisher eventPublisher, IPlatformMemoryCache platformMemoryCache, ICatalogService catalogService) { _repositoryFactory = repositoryFactory; _eventPublisher = eventPublisher; _platformMemoryCache = platformMemoryCache; _catalogService = catalogService; }
public ChangeLogService( Func <IPlatformRepository> platformRepositoryFactory , IPlatformMemoryCache memoryCache) { _repositoryFactory = platformRepositoryFactory; _memoryCache = memoryCache; }
public FolderSearchService(Func <IMarketingRepository> repositoryFactory, IPlatformMemoryCache platformMemoryCache, IDynamicContentService dynamicContentService) { _repositoryFactory = repositoryFactory; _platformMemoryCache = platformMemoryCache; _dynamicContentService = dynamicContentService; }
public TaxProviderSearchService(Func <ITaxRepository> repositoryFactory, IPlatformMemoryCache platformMemoryCache, ITaxProviderService taxProviderService, ISettingsManager settingManager) { _repositoryFactory = repositoryFactory; _memCache = platformMemoryCache; _taxProviderService = taxProviderService; _settingManager = settingManager; }
private MemberService GetMemberService(IPlatformMemoryCache platformMemoryCache) { _userSearchServiceMock.Setup(x => x.SearchUsersAsync(It.IsAny <UserSearchCriteria>())) .ReturnsAsync(new UserSearchResult()); return(new MemberService(_repositoryFactory, _userSearchServiceMock.Object, _eventPublisherMock.Object, platformMemoryCache)); }
protected MemberServiceBase(Func <IMemberRepository> repositoryFactory, IEventPublisher eventPublisher, IDynamicPropertyService dynamicPropertyService, ISeoService seoService, IPlatformMemoryCache platformMemoryCache) { RepositoryFactory = repositoryFactory; EventPublisher = eventPublisher; DynamicPropertyService = dynamicPropertyService; SeoService = seoService; PlatformMemoryCache = platformMemoryCache; }
public MarketingSearchServiceImpl(Func <IMarketingRepository> repositoryFactory, IDynamicContentService dynamicContentService, IPromotionService promotionService , IPlatformMemoryCache platformMemoryCache) { _repositoryFactory = repositoryFactory; _dynamicContentService = dynamicContentService; _promotionService = promotionService; _platformMemoryCache = platformMemoryCache; }
public QuoteRequestService(Func <IQuoteRepository> quoteRepositoryFactory, IUniqueNumberGenerator uniqueNumberGenerator, IEventPublisher eventPublisher, IStoreService storeService, IPlatformMemoryCache platformMemoryCache) { _repositoryFactory = quoteRepositoryFactory; _uniqueNumberGenerator = uniqueNumberGenerator; _eventPublisher = eventPublisher; _storeService = storeService; _platformMemoryCache = platformMemoryCache; }
public CatalogService(Func <ICatalogRepository> catalogRepositoryFactory, IEventPublisher eventPublisher, IPlatformMemoryCache platformMemoryCache, AbstractValidator <IHasProperties> hasPropertyValidator) { _repositoryFactory = catalogRepositoryFactory; _eventPublisher = eventPublisher; _platformMemoryCache = platformMemoryCache; _hasPropertyValidator = hasPropertyValidator; }
private PaymentPlanService GetPaymentPlanService(IPlatformMemoryCache platformMemoryCache) { return(new PaymentPlanService( () => _subscriptionRepositoryFactoryMock.Object, _eventPublisherMock.Object, platformMemoryCache )); }
public PaymentMethodsService( Func <IPaymentRepository> repositoryFactory, ISettingsManager settingManager, IPlatformMemoryCache memCache) { _repositoryFactory = repositoryFactory; _settingManager = settingManager; _memCache = memCache; }
public DemoProductPartSearchService( Func <ICatalogRepository> catalogRepositoryFactory, IPlatformMemoryCache platformMemoryCache, IDemoProductPartService productPartService) { _repositoryFactory = catalogRepositoryFactory; _platformMemoryCache = platformMemoryCache; _productPartService = productPartService; }
public DemoProductPartService( Func <ICatalogRepository> catalogRepositoryFactory, IPlatformMemoryCache platformMemoryCache, IEventPublisher eventPublisher) { _repositoryFactory = catalogRepositoryFactory; _platformMemoryCache = platformMemoryCache; _eventPublisher = eventPublisher; }
public CustomerSegmentService( Func <ICustomerSegmentRepository> customerSegmentRepositoryFactory, IPlatformMemoryCache platformMemoryCache, IEventPublisher eventPublisher) { _customerSegmentRepositoryFactory = customerSegmentRepositoryFactory; _platformMemoryCache = platformMemoryCache; _eventPublisher = eventPublisher; }
public AssociationService( Func <IAssociationsRepository> associationsRepositoryFactory, IPlatformMemoryCache platformMemoryCache, IEventPublisher eventPublisher) { _associationsRepositoryFactory = associationsRepositoryFactory; _platformMemoryCache = platformMemoryCache; _eventPublisher = eventPublisher; }
public ShoppingCartService(Func <ICartRepository> repositoryFactory, IShoppingCartTotalsCalculator totalsCalculator, IEventPublisher eventPublisher, IPlatformMemoryCache platformMemoryCache) { _repositoryFactory = repositoryFactory; _totalsCalculator = totalsCalculator; _eventPublisher = eventPublisher; _platformMemoryCache = platformMemoryCache; }
public ShoppingCartServiceImpl(Func <ICartRepository> repositoryFactory, IDynamicPropertyService dynamicPropertyService, IShoppingCartTotalsCalculator totalsCalculator, IEventPublisher eventPublisher, IPlatformMemoryCache platformMemoryCache) { _repositoryFactory = repositoryFactory; _dynamicPropertyService = dynamicPropertyService; _totalsCalculator = totalsCalculator; _eventPublisher = eventPublisher; _platformMemoryCache = platformMemoryCache; }
public PaymentPlanSearchService( Func <ISubscriptionRepository> subscriptionRepositoryFactory , IPlatformMemoryCache platformMemoryCache , IPaymentPlanService paymentPlanService ) { _subscriptionRepositoryFactory = subscriptionRepositoryFactory; _platformMemoryCache = platformMemoryCache; _paymentPlanService = paymentPlanService; }
public PricingSearchServiceImpl(Func <IPricingRepository> repositoryFactory, IPricingService pricingService , IPlatformMemoryCache platformMemoryCache , IProductIndexedSearchService productIndexedSearchService) { _repositoryFactory = repositoryFactory; _pricesSortingAliases["prices"] = ReflectionUtility.GetPropertyName <Price>(x => x.List); _pricingService = pricingService; _platformMemoryCache = platformMemoryCache; _productIndexedSearchService = productIndexedSearchService; }
public PricingServiceImpl(Func <IPricingRepository> repositoryFactory, IItemService productService, ILogger <PricingServiceImpl> logger, IPlatformMemoryCache platformMemoryCache, IPricingExtensionManager extensionManager) { _repositoryFactory = repositoryFactory; _productService = productService; _logger = logger; _platformMemoryCache = platformMemoryCache; _extensionManager = extensionManager; }
public StoreService(Func <IStoreRepository> repositoryFactory, ISettingsManager settingManager, IDynamicPropertyService dynamicPropertyService, IEventPublisher eventPublisher, IPlatformMemoryCache platformMemoryCache) { _repositoryFactory = repositoryFactory; _settingManager = settingManager; _dynamicPropertyService = dynamicPropertyService; _eventPublisher = eventPublisher; _platformMemoryCache = platformMemoryCache; }
public SubscriptionServiceImpl(IStoreService storeService, ICustomerOrderService customerOrderService, ICustomerOrderSearchService customerOrderSearchService, Func <ISubscriptionRepository> subscriptionRepositoryFactory, IUniqueNumberGenerator uniqueNumberGenerator, IEventPublisher eventPublisher, IPlatformMemoryCache platformMemoryCache) { _storeService = storeService; _customerOrderService = customerOrderService; _customerOrderSearchService = customerOrderSearchService; _subscriptionRepositoryFactory = subscriptionRepositoryFactory; _uniqueNumberGenerator = uniqueNumberGenerator; _eventPublisher = eventPublisher; _platformMemoryCache = platformMemoryCache; }
public CustomUserManager(IUserStore <ApplicationUser> store, IOptions <IdentityOptions> optionsAccessor, IPasswordHasher <ApplicationUser> passwordHasher, IEnumerable <IUserValidator <ApplicationUser> > userValidators, IEnumerable <IPasswordValidator <ApplicationUser> > passwordValidators, ILookupNormalizer keyNormalizer, IdentityErrorDescriber errors, IServiceProvider services, ILogger <UserManager <ApplicationUser> > logger, RoleManager <Role> roleManager, IPlatformMemoryCache memoryCache, IEventPublisher eventPublisher) : base(store, optionsAccessor, passwordHasher, userValidators, passwordValidators, keyNormalizer, errors, services, logger) { _memoryCache = memoryCache; _roleManager = roleManager; _eventPublisher = eventPublisher; }
public PaymentMethodsSearchService( Func <IPaymentRepository> repositoryFactory, IPlatformMemoryCache memCache, IPaymentMethodsService paymentMethodsService, ISettingsManager settingsManager) { _repositoryFactory = repositoryFactory; _memCache = memCache; _paymentMethodsService = paymentMethodsService; _settingsManager = settingsManager; }
public ShippingMethodsSearchService( Func <IShippingRepository> repositoryFactory, IPlatformMemoryCache memCache, IShippingMethodsService shippingMethodsService, ISettingsManager settingsManager) { _repositoryFactory = repositoryFactory; _memCache = memCache; _shippingMethodsService = shippingMethodsService; _settingsManager = settingsManager; }
private PricingServiceImpl GetPricingServiceImpl(IPlatformMemoryCache platformMemoryCache, IPricingRepository pricingRepository) { return(new PricingServiceImpl( () => pricingRepository, _productServiceMock.Object, _loggerMock.Object, platformMemoryCache, _eventPublisherMock.Object, _pricingPriorityFilterPolicyMock.Object )); }
public MemberService( Func <IMemberRepository> repositoryFactory , IUserSearchService userSearchService , IEventPublisher eventPublisher , IPlatformMemoryCache platformMemoryCache) { _repositoryFactory = repositoryFactory; _eventPublisher = eventPublisher; _platformMemoryCache = platformMemoryCache; _userSearchService = userSearchService; }