예제 #1
0
 public NotificationService(ILogger logger, IEMailSender emailSender,
                            IContactRepository contactRepository)
 {
     _logger            = logger;
     _emailSender       = emailSender;
     _contactRepository = contactRepository;
 }
 public AccountController(IAccountManager accountManager, IAuthorizationService authorizationService, IEMailSender emailSender, IOptions <AppSettings> appSettings)
 {
     _accountManager       = accountManager;
     _authorizationService = authorizationService;
     _emailSender          = emailSender;
     _publicRoleName       = appSettings.Value.DefaultUserRole;
 }
예제 #3
0
 public PendenciaApplication(
     IResponsavelApplication responsavelApp,
     IPendenciaRepository repository,
     IEMailSender emailSender,
     IMapper mapper) : base(repository, mapper)
 {
     _responsavelApp = responsavelApp;
     _repository     = repository;
     _emailSender    = emailSender;
     _mapper         = mapper;
 }
예제 #4
0
        public EmailNotificationChannel(
            ILogger <EmailNotificationChannel> logger,
            IEMailSender sender,
            IEnumerable <IEMailNotificationPostProcessor> postProcessors) : base(logger, EmailNotification.Type)
        {
            _sender = sender ?? throw new ArgumentNullException(nameof(sender));

            if (postProcessors == null)
            {
                throw new ArgumentNullException(nameof(postProcessors));
            }
            _postProcessors = postProcessors.ToArray();
        }
        public override void SetUp()
        {
            base.SetUp();
            _repository = new PendenciaRepository(Context);

            _responsavelApp = new Mock <IResponsavelApplication>().Object;

            var emailSenderMock = new Mock <IEMailSender>();

            emailSenderMock
            .Setup(es => es.Send())
            .Returns(true);

            _emailSender = emailSenderMock.Object;
        }
예제 #6
0
 public Handler(DbContextOptions <DatabaseContext> options, UserManager <UserFasserly> userManager, IEMailSender eMailSender) : base(options)
 {
     _userManager = userManager;
     _eMailSender = eMailSender;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="notificationRepository">The notification message repository</param>
 /// <param name="eMailSender">E-Mail sender for SMS</param>
 public EMailSenderJob(INotificationRepository notificationRepository, IEMailSender eMailSender)
 {
     _notificationRepository = notificationRepository;
     _eMailSender            = eMailSender;
 }
예제 #8
0
 public Handler(UserManager <UserFasserly> userManager, IEMailSender emailSender)
 {
     _userManager = userManager;
     _emailSender = emailSender;
 }
예제 #9
0
 public CustomerController(IUnitOfWork unitOfWork, ILogger<CustomerController> logger, IEMailSender emailSender)
 {
     _unitOfWork = unitOfWork;
     _logger = logger;
     _emailSender = emailSender;
 }