public ClaimManagementController(IFoundItemClaimRepository foundItemClaim, ILostItemClaimRepository lostItemClaim, IEmailNotifier emailSender) { this.foundItemClaim = foundItemClaim; this.lostItemClaim = lostItemClaim; this.emailSender = emailSender; }
public AccountController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailNotifier emailNotifier) { this.userManager = userManager; this.signInManager = signInManager; this.emailNotifier = emailNotifier; }
public NotificationService(ITelegramNotifier telegramService, IEmailNotifier emailService, List <NotificationRecord> records) { _telegramService = telegramService; _emailService = emailService; _records = records; }
public GenerateOffchainOutputsFunction(BaseSettings settings, CachedDataDictionary <string, IAsset> assetRepostory, CachedDataDictionary <string, IAssetSetting> assetSettingRepository, IBitcoinOutputsService bitcoinOutputsService, ILog logger, ITransactionBuildHelper transactionBuildHelper, RpcConnectionParams connectionParams, TransactionBuildContextFactory transactionBuildContextFactory, IBitcoinBroadcastService bitcoinBroadcastService, IBroadcastedOutputRepository broadcastedOutputRepository, ISignatureApiProvider signatureApiProvider, IEmailNotifier emailNotifier, ISlackNotifier slackNotifier, ISpentOutputService spentOutputService, IPregeneratedOutputsQueueFactory pregeneratedOutputsQueueFactory) { _settings = settings; _assetRepostory = assetRepostory; _assetSettingRepository = assetSettingRepository; _bitcoinOutputsService = bitcoinOutputsService; _logger = logger; _transactionBuildHelper = transactionBuildHelper; _connectionParams = connectionParams; _transactionBuildContextFactory = transactionBuildContextFactory; _bitcoinBroadcastService = bitcoinBroadcastService; _broadcastedOutputRepository = broadcastedOutputRepository; _emailNotifier = emailNotifier; _slackNotifier = slackNotifier; _spentOutputService = spentOutputService; _pregeneratedOutputsQueueFactory = pregeneratedOutputsQueueFactory; _signatureApi = signatureApiProvider; }
public BookingController(IBookingRepository repo, IMapper mapper, IEventRequestManager eventRequestManager, IEmailNotifier emailNotifier, IRazorViewToStringRenderer razorViewToStringRenderer) { _repo = repo; _mapper = mapper; _eventRequestManager = eventRequestManager; _emailNotifier = emailNotifier; _razorViewToStringRenderer = razorViewToStringRenderer; }
public LostItemClaimController(UserManager <ApplicationUser> userManager, IEmailNotifier emailNotifier, IUtility utility, ILostItemRepository lostItemRepository, ILostItemClaimRepository claimRepository) { this.userManager = userManager; this.emailNotifier = emailNotifier; this.utility = utility; this.lostItemRepository = lostItemRepository; this.claimRepository = claimRepository; }
public AlertsJob(string componentName, IMongoCollection <TransactionMongoEntity> blockchainExplorer, IQueueExt transitQueue, IQueueExt cashoutQueue, ILog log, IEmailNotifier emailNotifier) { _componentName = componentName + ".Job"; _log = log; _emailNotifier = emailNotifier; _blockchainExplorer = blockchainExplorer; _transitQueue = transitQueue; _cashoutQueue = cashoutQueue; }
public FinancesController(IBillsRepository billsRepository, IReservesRepository reservesRepository, IPersonsRepository personsRepository, IBuildingsRepository buildingsRepository, IEmailNotifier emailNotifier) { this.billsRepository = billsRepository; this.reservesRepository = reservesRepository; this.personsRepository = personsRepository; this.buildingsRepository = buildingsRepository; this.emailNotifier = emailNotifier; }
/// <summary> /// Конструктор. /// </summary> /// <param name="emailNotifier">Оповещатель email.</param> /// <param name="logger">Для логирования событий.</param> /// <param name="emailMessageFactory"><see cref="IEmailMessageFactory"/>.</param> public EmailNotificationHandler( IEmailNotifier emailNotifier, ILogger <EmailNotificationHandler> logger, IEmailMessageFactory emailMessageFactory ) { this.emailNotifier = emailNotifier; this.logger = logger; this.emailMessageFactory = emailMessageFactory; }
public MachineLogic(IDrinkMakerProtocol drinkMakerProtocol, IBeverageQuantityChecker beverageQuantityChecker, IEmailNotifier emailNotifier) { this.drinkMakerProtocol = drinkMakerProtocol; this.cashier = new Cashier(); this.repository = new Repository(); this.beverageQuantityChecker = beverageQuantityChecker; this.emailNotifier = emailNotifier; }
public GenerateUserContractPoolFunction(IUserContractQueueService contractQueueService, BaseSettings settings, IContractService contractService, IPaymentService paymentService, IEmailNotifier emailNotifier, ISlackNotifier slackNotifier, ILog logger) { _contractQueueService = contractQueueService; _settings = settings; _contractService = contractService; _paymentService = paymentService; _emailNotifier = emailNotifier; _slackNotifier = slackNotifier; _logger = logger; }
public EmployeeService(ILog log, IExceptionManager exception, IEmployeeRepository employeeRepository, IAccessTokenRepository accessTokenRepository, IFileManager fm, IPathMapper path, IEmailNotifier emailNotifier) { _log = log; _exception = exception; _employeeRepository = employeeRepository; _accessTokenRepository = accessTokenRepository; _fm = fm; _path = path; _emailNotifier = emailNotifier; }
public FoundItemClaimController(IFoundItemClaimRepository claimRepository, IEmailNotifier emailNotifier, IFoundItemRepository foundItemRepository, IUtility utility, UserManager <ApplicationUser> userManager) { this.claimRepository = claimRepository; this.emailNotifier = emailNotifier; this.foundItemRepository = foundItemRepository; this.utility = utility; this.userManager = userManager; }
public MeetingController(IFoundItemRepository repository, IFoundItemClaimRepository claimRepository, UserManager <ApplicationUser> userManager, IEmailNotifier emailNotifier, IStateRepository stateRepository, IMeetingRepository meetingRepository) { this.repository = repository; this.claimRepository = claimRepository; this.userManager = userManager; this.emailNotifier = emailNotifier; this.stateRepository = stateRepository; this.meetingRepository = meetingRepository; }
public NotificationService( IEmailMessageFormatter emailMessageFormatter, IEmailNotifier emailNotifier, ILoggerFactory loggerFactory, string url) { _emailMessageFormatter = emailMessageFormatter; _emailNotifier = emailNotifier; _url = url; _logger = loggerFactory.CreateLogger <NotificationService>(); }
public MaintenanceController(IMaintenancesRepository maintenancesRepository, IBuildingsRepository buildingsRepository, IPersonsRepository personsRepository, IRepairServicesRepository repairServicesRepository, IContractorsRepository contractorsRepository, IEmailNotifier emailNotifier) { this.maintenancesRepository = maintenancesRepository; this.buildingsRepository = buildingsRepository; this.personsRepository = personsRepository; this.repairServicesRepository = repairServicesRepository; this.contractorsRepository = contractorsRepository; this.emailNotifier = emailNotifier; }
public BuildingManagerController(IBuildingManagersRepository buildingManagersRepository, IPersonsRepository personsRepository, IContractorsRepository contractorsRepository, IBillsRepository billsRepository, IBuildingsRepository buildingsRepository, IEmailNotifier emailNotifier) { this.buildingManagersRepository = buildingManagersRepository; this.personsRepository = personsRepository; this.contractorsRepository = contractorsRepository; this.billsRepository = billsRepository; this.buildingsRepository = buildingsRepository; this.emailNotifier = emailNotifier; }
public PaymentHandler(IPackingSlipGenerator slipService, IEmailNotifier _notifier) { _payments = new List <IProduct>(); _payments.Add(new PhysicalProduct(slipService)); _payments.Add(new Book(slipService)); _payments.Add(new MembershipHandler(MembershipType.Regular, _notifier)); _payments.Add(new MembershipHandler(MembershipType.Premium, _notifier)); _payments.Add(new VideoLearningHandler(VideoTypes.LearningToSki)); _payments.Add(new VideoLearningHandler(VideoTypes.Others)); }
public NotificationService( IEmailMessageFormatter emailMessageFormatter, IEmailNotifier emailNotifier, UserManager <CoreOdinUser> userManager, IConfiguration configuration) { _emailMessageFormatter = emailMessageFormatter; _emailNotifier = emailNotifier; _userManager = userManager; _appSettings = configuration.Get <AppSettings>(); }
public MeetingManagementController(RoleManager <IdentityRole> roleMgr, IFoundItemClaimRepository foundItemClaimRepository, IEmailNotifier emailSender, ILostItemClaimRepository lostItemClaimRepository, UserManager <ApplicationUser> userManager, IMeetingRepository management) { this.roleManager = roleMgr; this.foundItemClaimRepository = foundItemClaimRepository; this.emailSender = emailSender; this.lostItemClaimRepository = lostItemClaimRepository; this.userManager = userManager; this.management = management; }
public NotificationService( IEmailMessageFormatter emailMessageFormatter, IEmailNotifier emailNotifier, IOptionsSnapshot <AppSettings> appSettings, ILoggerFactory loggerFactory) { _emailMessageFormatter = emailMessageFormatter; _emailNotifier = emailNotifier; _appSettings = appSettings.Value; _logger = loggerFactory.CreateLogger <NotificationService>(); }
public ContractorController(IContractorsRepository contractorsRepository, IMaintenancesRepository maintenancesRepository, IPersonsRepository personsRepository, IBillsRepository billsRepository, IRepairServicesRepository repairServicesRepository, IEmailNotifier emailNotifier) { this.contractorsRepository = contractorsRepository; this.maintenancesRepository = maintenancesRepository; this.personsRepository = personsRepository; this.billsRepository = billsRepository; this.repairServicesRepository = repairServicesRepository; this.emailNotifier = emailNotifier; }
public FundingClaimsReminderService( ICollectionReferenceDataService collectionReferenceData, IFundingClaimsEmailService fundingClaimsEmailService, IEmailTemplateService emailTemplateService, IEmailNotifier emailNotifier, ILogger logger) { _collectionReferenceData = collectionReferenceData; _fundingClaimsEmailService = fundingClaimsEmailService; _emailTemplateService = emailTemplateService; _emailNotifier = emailNotifier; _logger = logger; }
public AccessTokenService(ILog log, IAccessTokenRepository accessTokenRepository, IValidatorService <AudienceCredentials> loginUserValidators, IValidatorService <RegisterModel> userRegistrationValidators, IValidatorService <RecoveryCode> changePasswordValidators, IExceptionManager exception, ICryptoGraphy cryptoGraphy, IFileManager fm, IPathMapper path, IEmailNotifier emailNotifier, IUserRepository userRepository) { _log = log; _accessTokenRepository = accessTokenRepository; _loginUserValidators = loginUserValidators; _userRegistrationValidators = userRegistrationValidators; _changePasswordValidators = changePasswordValidators; _exception = exception; _cryptoGraphy = cryptoGraphy; _fm = fm; _path = path; _emailNotifier = emailNotifier; _userRepository = userRepository; }
public FileUploadJobManager( Func <IJobQueueDataContext> contextFactory, IDateTimeProvider dateTimeProvider, IReturnCalendarService returnCalendarService, IEmailTemplateManager emailTemplateManager, IEmailNotifier emailNotifier, ILogger logger) : base(contextFactory, returnCalendarService, emailTemplateManager) { _contextFactory = contextFactory; _dateTimeProvider = dateTimeProvider; _emailNotifier = emailNotifier; _logger = logger; }
public LostItemController(IStateRepository stateRepository, ILocalGovernmentRepository lgaRepository, IEmailNotifier emailNotifier, IUtility utility, ILostItemRepository repository, ILostItemClaimRepository claimRepository, UserManager <ApplicationUser> userManager) { this.stateRepository = stateRepository; this.lgaRepository = lgaRepository; this.emailNotifier = emailNotifier; this.utility = utility; this.repository = repository; this.claimRepository = claimRepository; // this.context = context; this.userManager = userManager; }
public AccountController(ICitiesRepository citiesRepository, IRepairServicesRepository repairServicesRepository, IContractorsRepository contractorsRepository, IBuildingManagersRepository buildingManagersRepository, IPersonsRepository personsRepository, IRolesRepository rolesRepository, IPartitionSpacesRepository partitionSpacesRepository, IHousingMgmtUsersRepository housingMgmtUsersRepository, IEmailNotifier emailNotifier) { this.citiesRepository = citiesRepository; this.repairServicesRepository = repairServicesRepository; this.contractorsRepository = contractorsRepository; this.buildingManagersRepository = buildingManagersRepository; this.personsRepository = personsRepository; this.rolesRepository = rolesRepository; this.partitionSpacesRepository = partitionSpacesRepository; this.housingMgmtUsersRepository = housingMgmtUsersRepository; this.emailNotifier = emailNotifier; }
public BuildingManagementController(ICitiesRepository citiesRepository, IBuildingsRepository buildingsRepository, IBuildingManagersRepository buildingManagersRepository, IPersonsRepository personsRepository, IAdminJobsVotingsRepository adminJobsVotingsRepository, IPartitionSpacesRepository partitionSpacesRepository, IRolesRepository rolesRepository, IHousingMgmtUsersRepository housingMgmtUsersRepository, IEmailNotifier emailNotifier) { this.citiesRepository = citiesRepository; this.buildingsRepository = buildingsRepository; this.buildingManagersRepository = buildingManagersRepository; this.personsRepository = personsRepository; this.adminJobsVotingsRepository = adminJobsVotingsRepository; this.partitionSpacesRepository = partitionSpacesRepository; this.rolesRepository = rolesRepository; this.housingMgmtUsersRepository = housingMgmtUsersRepository; this.emailNotifier = emailNotifier; }
public void Services() { Mock <IEmailNotifier> emailNotifierMock = new Mock <IEmailNotifier>(); Mock <IBeverageQuantityChecker> beverageCheckerMock = new Mock <IBeverageQuantityChecker>(); IEmailNotifier emailNotifier = emailNotifierMock.Object; IBeverageQuantityChecker beverageChecker = beverageCheckerMock.Object; var command = new CoffeeCommand(); var cmdType = command.GetType().ToString(); beverageCheckerMock.Setup(p => p.IsEmpty(cmdType)).Returns(true); Assert.IsTrue(beverageChecker.IsEmpty(cmdType)); var cm = new CoffeeMachine(emailNotifier, beverageChecker); cm.Order(command, 1); beverageCheckerMock.Verify(p => p.IsEmpty(cmdType), Times.AtLeastOnce); emailNotifierMock.Verify(p => p.NotifyMissingDrink(cmdType), Times.Once); Assert.Pass(); }
public GenerateOutputsFunction(IAssetRepository assetRepository, IPregeneratedOutputsQueueFactory pregeneratedOutputsQueueFactory, IBitcoinOutputsService bitcoinOutputsService, IFeeProvider feeProvider, IRpcBitcoinClient bitcoinClient, IBroadcastedOutputRepository broadcastedOutputRepository, ISpentOutputService spentOutputService, BaseSettings baseSettings, RpcConnectionParams connectionParams, ILog logger, IEmailNotifier emailNotifier, ISlackNotifier slackNotifier, ISignatureApiProvider signatureApiProvider) { _assetRepository = assetRepository; _pregeneratedOutputsQueueFactory = pregeneratedOutputsQueueFactory; _bitcoinOutputsService = bitcoinOutputsService; _feeProvider = feeProvider; _bitcoinClient = bitcoinClient; _broadcastedOutputRepository = broadcastedOutputRepository; _spentOutputService = spentOutputService; _baseSettings = baseSettings; _connectionParams = connectionParams; _logger = logger; _emailNotifier = emailNotifier; _slackNotifier = slackNotifier; _signatureApiProvider = signatureApiProvider; }
private IContainer Registrations(IEmailTemplateManager emailTemplateManager = null, IEmailNotifier emailNotifier = null) { ContainerBuilder builder = new ContainerBuilder(); builder.RegisterInstance(new Mock <IDateTimeProvider>().Object).As <IDateTimeProvider>().SingleInstance(); builder.RegisterInstance(emailTemplateManager ?? new Mock <IEmailTemplateManager>().Object).As <IEmailTemplateManager>().SingleInstance(); builder.RegisterInstance(emailNotifier ?? new Mock <IEmailNotifier>().Object).As <IEmailNotifier>().SingleInstance(); builder.RegisterInstance(new Mock <IFileUploadJobManager>().Object).As <IFileUploadJobManager>().SingleInstance(); builder.RegisterInstance(new Mock <ILogger>().Object).As <ILogger>().SingleInstance(); builder.RegisterInstance(new Mock <IReturnCalendarService>().Object).As <IReturnCalendarService>().SingleInstance(); builder.RegisterType <JobManager>().As <IJobManager>().InstancePerLifetimeScope(); builder.RegisterType <JobQueueDataContext>().As <IJobQueueDataContext>().InstancePerDependency(); builder.Register(context => { SqliteConnection connection = new SqliteConnection("DataSource=:memory:"); connection.Open(); return(GetContextOptions()); }) .As <DbContextOptions <JobQueueDataContext> >() .SingleInstance(); IContainer container = builder.Build(); return(container); }
public AppSettingsRenewer(IRenewalManager renewalManager, IAppSettingsRenewalParamsReader renewalParamsReader, IEmailNotifier notifier) { m_renewalManager = renewalManager; m_renewalParamsReader = renewalParamsReader; m_notifier = notifier; }
public NotificationManager(IMessageHandler messageHandler, INotificationRepository repo, IEmailNotifier emailNotifier) { _messageHandler = messageHandler; _repo = repo; _emailNotifier = emailNotifier; }
public CoffeeMachineComanderForTest(CoffeeMachineComander CoffeeMachineComander, IBeverageQuantityChecker mock, IEmailNotifier emailMock) { _coffeeMachineComander = CoffeeMachineComander; _mock = mock; _emailMock = emailMock; }
public UsersController(ILoginService userService, JoggingDbContext context, IEmailNotifier emailNotifier) { _loginService = userService; _context = context; _emailNotifier = emailNotifier; }
public CoffeeMachineComander(IBeverageQuantityChecker checker,IEmailNotifier emailNotifier) { _checker = checker; _emailNotifier = emailNotifier; }
public AppointmentsAvailbilityReportSender(IEmailNotifier emailNotifier, ILogger <AppointmentsAvailbilityReportSender> logger) { this._emailNotifier = emailNotifier; this._logger = logger; }
public EmailNotificationSubscriber(IEmailNotifier emailNotifier, IEventBus eventBus) { _emailNotifier = emailNotifier; _eventBus = eventBus; }