public void TestInitialize() { _registrationRepository = new MongoDBRepositoryTest <PushRegistration>(); _messageRepository = new MongoDBRepositoryTest <PushMessage>(); var eventPublisher = new Mock <IMediator>(); //eventPublisher.Setup(x => x.PublishAsync(new object())); _eventPublisher = eventPublisher.Object; var pushNotificationsSettings = new Mock <PushNotificationsSettings>(); _pushNotificationsSettings = pushNotificationsSettings.Object; var localizationService = new Mock <ILocalizationService>(); _localizationService = localizationService.Object; var logger = new Mock <ILogger>(); _logger = logger.Object; _pushNotificationsService = new PushNotificationsService(_registrationRepository, _messageRepository, _eventPublisher, _pushNotificationsSettings, _localizationService, _logger); }
public PushNotificationsService(IRepository <PushRegistration> pushRegistratiosnRepository, IRepository <PushMessage> pushMessagesRepository, IEventPublisher eventPublisher, PushNotificationsSettings pushNotificationsSettings, ILocalizationService localizationService, ILogger logger) { this._pushRegistratiosnRepository = pushRegistratiosnRepository; this._pushMessagesRepository = pushMessagesRepository; this._eventPublisher = eventPublisher; this._pushNotificationsSettings = pushNotificationsSettings; this._localizationService = localizationService; this._logger = logger; }
public PushNotificationsService(IRepository <PushRegistration> pushRegistratiosnRepository, IRepository <PushMessage> pushMessagesRepository, IMediator mediator, PushNotificationsSettings pushNotificationsSettings, ITranslationService translationService, ILogger logger) { _pushRegistratiosnRepository = pushRegistratiosnRepository; _pushMessagesRepository = pushMessagesRepository; _mediator = mediator; _pushNotificationsSettings = pushNotificationsSettings; _translationService = translationService; _logger = logger; }
public PushNotificationsService(IRepository <PushRegistration> pushRegistratiosnRepository, IRepository <PushMessage> pushMessagesRepository, IMediator mediator, PushNotificationsSettings pushNotificationsSettings, ILocalizationService localizationService, ILogger logger) { this._pushRegistratiosnRepository = pushRegistratiosnRepository; this._pushMessagesRepository = pushMessagesRepository; this._mediator = mediator; this._pushNotificationsSettings = pushNotificationsSettings; this._localizationService = localizationService; this._logger = logger; }
public static T CreateDefault <T>() where T : TraderSettingsBase, new() { if (typeof(T) == typeof(IsOffchainUserSettings)) { return(IsOffchainUserSettings.CreateDefault() as T); } if (typeof(T) == typeof(PushNotificationsSettings)) { return(PushNotificationsSettings.CreateDefault() as T); } return(new T()); }
public PushNotificationsController(PushNotificationsSettings pushNotificationsSettings, ILocalizationService localizationService, ISettingService settingService, IStoreService storeService, IPushNotificationsService pushNotificationsService, IWorkContext workContext, ICustomerService customerService, IPictureService pictureService, IDateTimeHelper dateTimeHelper) { this._pushNotificationsSettings = pushNotificationsSettings; this._localizationService = localizationService; this._settingService = settingService; this._storeService = storeService; this._pushNotificationsService = pushNotificationsService; this._workContext = workContext; this._customerService = customerService; this._pictureService = pictureService; this._dateTimeHelper = dateTimeHelper; }
public PushNotificationsController( PushNotificationsSettings pushNotificationsSettings, ITranslationService translationService, ISettingService settingService, IPushNotificationsService pushNotificationsService, ICustomerService customerService, IPictureService pictureService, IDateTimeService dateTimeService) { _pushNotificationsSettings = pushNotificationsSettings; _translationService = translationService; _settingService = settingService; _pushNotificationsService = pushNotificationsService; _customerService = customerService; _pictureService = pictureService; _dateTimeService = dateTimeService; }
public PushNotificationsController( PushNotificationsSettings pushNotificationsSettings, ILocalizationService localizationService, ISettingService settingService, IPushNotificationsService pushNotificationsService, ICustomerService customerService, IPictureService pictureService, IDateTimeHelper dateTimeHelper) { _pushNotificationsSettings = pushNotificationsSettings; _localizationService = localizationService; _settingService = settingService; _pushNotificationsService = pushNotificationsService; _customerService = customerService; _pictureService = pictureService; _dateTimeHelper = dateTimeHelper; }
public PushNotificationsRegistration(IWorkContext workContext, PushNotificationsSettings pushNotificationsSettings) { _workContext = workContext; _pushNotificationsSettings = pushNotificationsSettings; }
public PushNotificationsRegistration(PushNotificationsSettings pushNotificationsSettings, IWorkContext workContext) { _pushNotificationsSettings = pushNotificationsSettings; _workContext = workContext; }