/// <summary>
 ///In constructor, we can get needed classes/interfaces.
 ///They are sent here by dependency injection system automatically.
 /// </summary>
 public InRequestAppService(IRepository <InRequest, Guid> inRequestRepository, IInRequestManager inRequestManager, IDateTime dateTime, IMailNotificationService mailSender)
 {
     _inRequestRepository = inRequestRepository;
     _inRequestManager    = inRequestManager;
     _dateTime            = dateTime;
     _mailSender          = mailSender;
 }
Example #2
0
 public Notificator(IUnitOfWork unitOfWork, IMailNotificationService mailNotificationService,
                    HttpClient httpClient)
 {
     _unitOfWork = unitOfWork;
     _mailNotificationService = mailNotificationService;
     _httpClient = httpClient;
 }
Example #3
0
 public EmailNotificationScheduledTask(
     ILogger <EmailNotificationScheduledTask> logger,
     ITimeService timeService,
     IMailNotificationService notificationService)
 {
     _logger              = logger;
     _timeService         = timeService;
     _notificationService = notificationService;
 }
 public EmailNotificationsController(IDataContext context, ILogger <EmailNotificationsController> logger, IMailNotificationService mailNotificationService)
 {
     _context     = context ?? throw new ArgumentNullException(nameof(context));
     _logger      = logger ?? throw new ArgumentNullException(nameof(logger));
     _mailService = mailNotificationService;
 }